Skip to lesson

A easy problem for practising 5.4 Array & String Techniques. Solve it in your own IDE, check it against every test, and open a hint only when you are stuck. 0/1 solved.

1. Longest passing streak

easy

A student writes a daily practice test for n days. A day counts as passed when that day's mark is at least p.

Find the length of the longest run of consecutive passed days. If no day was passed, print 0.

Input: The first line has two integers n and p. The second line has n integers: the marks for each day, in order.

Output: One integer: the length of the longest passing streak.

Limits: 1 ≤ n ≤ 10^5 · 0 ≤ p ≤ 100 · 0 ≤ mark ≤ 100

Example 1

Input

7 40
45 50 30 40 41 42 10

Output

3

Days 4, 5 and 6 (marks 40, 41, 42) form a streak of 3. A mark of exactly 40 counts.

Example 2

Input

3 90
10 20 30

Output

0

No day is passed.

Submit to solve