#CCBCHBON0000006. Dừng ở số vượt ngưỡng (Stop at the First Value Above Threshold)

Dừng ở số vượt ngưỡng (Stop at the First Value Above Threshold)

Stop at the First Value Above Threshold

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given threshold TT and a sequence of nn integers, print the first value strictly greater than TT, not its position. Print NONE if absent. Values after the first match do not affect the answer.

Input

The first line contains n,Tn,T, then exactly nn integers. −106≤T,ai≤106-10^6\le T,a_i\le10^6.

Output

The first value satisfying ai>Ta_i>T, or NONE.

Subtasks

  • Subtask 1 (20%): 0≤n≤80\le n\le 8; −106≤ai≤106-10^6\le a_i\le10^6.

  • Subtask 2 (30%): 0≤n≤10000\le n\le 1000; −106≤ai≤106-10^6\le a_i\le10^6.

  • Subtask 3 (50%): 0≤n≤1000000\le n\le 100000; −106≤ai≤106-10^6\le a_i\le10^6.

Examples

Example 1

Input:

5 6
1 6 7 9 10

Output:

7

Explanation:

Equality does not qualify; return the first strictly greater value.

Example 2

Input:

3 -2
-5 -2 0

Output:

0

Explanation:

Equality does not qualify; return the first strictly greater value.