Processing math: 100%
Large subarray - MarisaOJ: Marisa Online Judge

Large subarray

Time limit: 1000 ms
Memory limit: 256 MB

Given an array A of n positive integers. Calculate the number of subarray with sum larger or equal to k.

Input

  • The first line contains 2 integer n,k.
  • The second line contains n space-separated integers Ai.

Output

  • Print an integer, the number of subarray with sum larger or equal to k.

Constraints

  • 1≤n≤105.
  • 1≤Ai,k≤109.

Example

Input:

5 6
1 2 1 4 5

Output:

6