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>
using namespace std;
void Freopen() {
  freopen(
      "title"
      ".in",
      "r", stdin);
  freopen(
      "title"
      ".out",
      "w", stdout);
}
long long read() {
  long long g = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || '9' < ch) {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while ('0' <= ch && ch <= '9') {
    g = g * 10 + ch - '0';
    ch = getchar();
  }
  return g * f;
}
const long long N = 1e5 + 5;
const long long INF = 1e18;
long long n, k, a[N], b[N], c[N], d[N], top, st[N], ans;
struct Seg {
  long long c[N << 2], tag[N << 2], d[N << 2];
  void updata(long long v, long long w) { c[v] += w, tag[v] += w; }
  void down(long long v) {
    updata(v << 1, tag[v]), updata(v << 1 | 1, tag[v]), tag[v] = 0;
  }
  void up(long long v) {
    c[v] = max(c[v << 1], c[v << 1 | 1]), d[v] = max(d[v << 1], d[v << 1 | 1]);
  }
  void build(long long v, long long l, long long r) {
    c[v] = -INF;
    if (l == r) return void();
    long long mid = l + r >> 1;
    build(v << 1, l, mid), build(v << 1 | 1, mid + 1, r);
  }
  void insert(long long v, long long l, long long r, long long ql, long long qr,
              long long w) {
    if (ql <= l && r <= qr) return updata(v, w), void();
    long long mid = l + r >> 1;
    down(v);
    if (ql <= mid) insert(v << 1, l, mid, ql, qr, w);
    if (qr > mid) insert(v << 1 | 1, mid + 1, r, ql, qr, w);
    up(v);
  }
  void change(long long v, long long l, long long r, long long q, long long w) {
    if (l == r) return d[v] = c[v] = w, void();
    long long mid = l + r >> 1;
    down(v);
    if (q <= mid)
      change(v << 1, l, mid, q, w);
    else
      change(v << 1 | 1, mid + 1, r, q, w);
    up(v);
  }
  long long ask(long long v, long long l, long long r, long long ql,
                long long qr) {
    if (ql <= l && r <= qr) return d[v];
    long long mid = l + r >> 1;
    down(v);
    if (qr <= mid) return ask(v << 1, l, mid, ql, qr);
    if (ql > mid) return ask(v << 1 | 1, mid + 1, r, ql, qr);
    return max(ask(v << 1, l, mid, ql, qr),
               ask(v << 1 | 1, mid + 1, r, ql, qr));
  }
  long long query(long long v, long long l, long long r, long long ql,
                  long long qr, long long w) {
    if (l == r) return l;
    long long mid = l + r >> 1;
    down(v);
    if (qr <= mid) return query(v << 1, l, mid, ql, qr, w);
    if (ql > mid) return query(v << 1 | 1, mid + 1, r, ql, qr, w);
    if (ask(1, 1, n, mid + 1, qr) + k >= max(w, c[v << 1]))
      return query(v << 1 | 1, mid + 1, r, ql, qr, max(w, c[v << 1]));
    return query(v << 1, l, mid, ql, qr, w);
  }
} seg;
signed main() {
  n = read(), k = read();
  for (long long i = (1); i <= (n - 1); i++) a[i] = a[i - 1] + read();
  for (long long i = (1); i <= (n); i++) b[i] = b[i - 1] + read();
  for (long long i = (1); i <= (n); i++) c[i] = a[i - 1] - b[i - 1];
  for (long long i = (1); i <= (n); i++) d[i] = b[i] - a[i - 1];
  seg.build(1, 1, n);
  for (long long i = (n); i >= (1); i--) {
    while (top && c[i] >= c[st[top]]) {
      if (top > 1)
        seg.insert(1, 1, n, st[top - 1] - 1, n, c[st[top]] - c[st[top - 1]]);
      top--;
    }
    st[++top] = i;
    seg.change(1, 1, n, i, d[i]);
    if (top > 1)
      seg.insert(1, 1, n, st[top - 1] - 1, n, c[st[top - 1]] - c[st[top]]);
    long long l = 1, r = top, pos;
    while (l <= r) {
      long long mid = l + r >> 1;
      if (c[st[mid]] - c[i] <= k)
        pos = mid, r = mid - 1;
      else
        l = mid + 1;
    }
    pos = pos == 1 ? n : st[pos - 1] - 1;
    ans = max(ans, seg.query(1, 1, n, i, pos, -INF) - i + 1);
  }
  return cout << ans, signed();
}