Problem: Kekoland is a country with n beautiful cities numbered from left to right and connected by n - 1 roads. The i-th road connects cities i and i + 1 and length of this road is wi kilometers. 

When you drive in Kekoland, each time you arrive in city i by car you immediately receive gi liters of gas. There is no other way to get gas in Kekoland.

You were hired by the Kekoland president Keko to organize the most beautiful race Kekoland has ever seen. Let race be between cities l and r (l ≤ r). Race will consist of two stages. On the first stage cars will go from city l to city r. After completing first stage, next day second stage will be held, now racers will go from r to l with their cars. Of course, as it is a race, racers drive directly from start city to finish city. It means that at the first stage they will go only right, and at the second stage they go only left. Beauty of the race between l and r is equal to r - l + 1 since racers will see r - l + 1 beautiful cities of Kekoland. Cars have infinite tank so racers will take all the gas given to them.

At the beginning of each stage racers start the race with empty tank (0 liters of gasoline). They will immediately take their gasoline in start cities (l for the first stage and r for the second stage) right after the race starts. 

It may not be possible to organize a race between l and r if cars will run out of gas before they reach finish.

You have k presents. Each time you give a present to city i its value gi increases by 1. You may distribute presents among cities in any way (also give many presents to one city, each time increasing gi by 1). What is the most beautiful race you can organize?

Each car consumes 1 liter of gas per one kilometer.

Input

The first line of the input contains two integers n and k (2 ≤ n ≤ 100 000, 0 ≤ k ≤ 109) — the number of cities in Kekoland and the number of presents you have, respectively.

Next line contains n - 1 integers. The i-th of them is wi (1 ≤ wi ≤ 109) — the length of the road between city i and i + 1. 

Next line contains n integers. The i-th of them is gi (0 ≤ gi ≤ 109) — the amount of gas you receive every time you enter city i.

Output

Print a single line — the beauty of the most beautiful race you can organize.

Examples

Input

4 4
2 2 2
1 1 1 1


Output

4


Input

8 5
2 2 2 3 7 3 1
1 3 1 5 4 0 2 5


Output

7

Note

In first sample if you give one present to each city then it will be possible to make a race between city 1 and city 4.

In second sample you should add 1 to g5 and 4 to g6, then it will be possible to make a race between cities 2 and 8. 

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
inline long long min(long long x, long long y) { return x < y ? x : y; }
inline long long max(long long x, long long y) { return x < y ? y : x; }
int a[262144], b[262144], e[262144], k, m, n, t;
long long A[262144], B[262144], C[262144], D[262144], E[262144], c[262144],
    d[262144];
inline void add(int u, long long v) { B[u] += v, C[u] += v, D[u] += v; }
inline void down(int u) { add(u << 1, D[u]), add(u << 1 | 1, D[u]), D[u] = 0; }
inline void push(int u) {
  for (int i = t; i; i--) down(u >> i);
}
inline void merge(int u, long long v, long long& x) {
  while (u < m)
    down(u), B[u << 1] < v ? x = min(x, v - A[u << 1]),
                             u = u << 1 | 1 : (x = min(x, C[u]), u <<= 1);
  x = min(x, max(v, B[u]) - A[u]);
}
inline void up(int u) {
  B[u] = max(B[u << 1], B[u << 1 | 1]),
  merge(u << 1 | 1, B[u << 1], C[u] = 0x3f3f3f3f3f3f3fll);
}
inline void modify(int u, int v, long long w) {
  for (push(u += m - 1), push(v += m + 1); u ^ v ^ 1;
       up(u >>= 1), up(v >>= 1)) {
    if (~u & 1) add(u ^ 1, w);
    if (v & 1) add(v ^ 1, w);
  }
  while (u >>= 1) up(u);
}
inline void build(int u) {
  for (A[m | u] = B[m | u] = d[u], push(u |= m), C[u] = 0; u >>= 1; up(u))
    A[u] = max(A[u << 1], A[u << 1 | 1]);
}
inline void Add(int u, int v) {
  for (u |= m; u; u >>= 1) E[u] += v;
}
inline int find(int u, int v) {
  while (u < m) u = E[u <<= 1] <= v ? v -= E[u], u | 1 : u;
  return u ^ m;
}
inline int find(int u) {
  long long v = -0x3f3f3f3f3f3f3fll, w;
  while (u < m)
    down(u), merge(u << 1 | 1, max(v, B[u << 1]), w = 0x3f3f3f3f3f3f3fll),
        w <= k ? v = max(v, B[u << 1]), u = u << 1 | 1 : u <<= 1;
  return u ^ m;
}
int i, u, x;
int main() {
  for (scanf("%d%d", &n, &k), m = 1; m < n + 2; t++) m <<= 1;
  for (i = 1; i < n; i++) scanf("%d", a + i);
  for (i = 1; i <= n; i++)
    scanf("%d", b + i), c[i] = c[i - 1] - a[i] + b[i],
                        d[i] = d[i - 1] - a[i - 1] + b[i];
  for (i = 1; i < m << 1; i++)
    A[i] = -0x3f3f3f3f3f3f3fll - 0x3f3f3f3f3f3f3fll, B[i] = -0x3f3f3f3f3f3f3fll,
    C[i] = 0x3f3f3f3f3f3f3fll;
  for (i = n; i; i--) {
    for (build(i), e[i] = i + 1; e[i] <= n && c[i - 1] <= c[e[i] - 1];
         e[i] = e[e[i]])
      modify(e[i] - 1, n, -E[m | e[i] - 1]), Add(e[i] - 1, -E[m | e[i] - 1]);
    if (e[i] <= n)
      modify(e[i] - 1, n, c[i - 1] - c[e[i] - 1] - E[m | e[i] - 1]),
          Add(e[i] - 1, c[i - 1] - c[e[i] - 1] - E[m | e[i] - 1]);
    u = min(n, find(1, k)), modify(u, u, -E[m | u]),
    modify(u + 1, n, 0x3f3f3f3f3f3f3fll), x = max(x, find(1) - i + 1),
    modify(u + 1, n, -0x3f3f3f3f3f3f3fll), modify(u, u, E[m | u]);
  }
  return 0 * printf("%d\n", x);
}