Suffering


Josh does not like research. He models the nn FIT2083 classes of the semester as an array, where aia_i is the number of Depression Points he gains from attending the iith class.

If the total number of Depression Points from a consecutive block of classes becomes strictly greater than kk, Josh will die. Determine the smallest number of consecutive classes he can attend and die as a result. If no such block exists, output -1.

Input

The first line contains two integers nn and kk.

The second line contains nn positive integers a1,a2,,ana_1, a_2, \dots, a_n.

Output

Print a single integer: the minimum length of a contiguous subarray whose sum is strictly greater than kk. If no such subarray exists, print -1.

Constraints

  • 1n1051 \le n \le 10^5
  • 1ai1031 \le a_i \le 10^3
  • 1k1091 \le k \le 10^9

Example 1

Input 1
5 11
5 10 1 4 5
Output 1
2
Explanation

The shortest valid subarray is [5,10][5, 10], whose sum is 15>1115 > 11.

Comments0


No comments yet

Be the first to comment.

New comment


Log in to join the discussion.