100 atcoder#ABC130B. [ABC130B] Bounding

[ABC130B] Bounding

Score : 200200 points

Problem Statement

A ball will bounce along a number line, making N+1N + 1 bounces. It will make the first bounce at coordinate D1=0D_1 = 0, and the ii-th bounce (2iN+1)(2 \leq i \leq N+1) at coordinate Di=Di1+Li1D_i = D_{i-1} + L_{i-1}.

How many times will the ball make a bounce where the coordinate is at most XX?

Constraints

  • 1N1001 \leq N \leq 100
  • 1Li1001 \leq L_i \leq 100
  • 1X100001 \leq X \leq 10000
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

NN XX

L1L_1 L2L_2 ...... LN1L_{N-1} LNL_N

Output

Print the number of times the ball will make a bounce where the coordinate is at most XX.

3 6
3 4 5
2

The ball will make a bounce at the coordinates 00, 33, 77 and 1212, among which two are less than or equal to 66.

4 9
3 3 3 3
4

The ball will make a bounce at the coordinates 00, 33, 66, 99 and 1212, among which four are less than or equal to 99.