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>
const long long Infll = 0x3f3f3f3f3f3f3f3f;
const int MN = 100005, MS = 1 << 18 | 7;
long long K, W[MN], G[MN], pre[MN], suf[MN];
int N, nxt[MN], Ans;
std::vector<int> T[MN];
long long amn[MS], bmn[MS], ans[MS], tg[MS];
inline void P(int i, long long x) { bmn[i] += x, ans[i] -= x, tg[i] += x; }
inline void Pushdown(int i) {
  if (tg[i]) P((i << 1), tg[i]), P(((i << 1) | 1), tg[i]), tg[i] = 0;
}
long long Calc(int i, int l, int r, long long p) {
  if (l == r) return amn[i] - p;
  Pushdown(i);
  if (bmn[(i << 1)] < p)
    return std::min(Calc((i << 1), l, ((l + r) >> 1), p), ans[i]);
  else
    return std::min(amn[(i << 1)] - p,
                    Calc(((i << 1) | 1), ((l + r) >> 1) + 1, r, p));
}
void Build(int i, int l, int r) {
  if (l == r) {
    amn[i] = bmn[i] = suf[l];
    return;
  }
  Build((i << 1), l, ((l + r) >> 1)),
      Build(((i << 1) | 1), ((l + r) >> 1) + 1, r);
  amn[i] = std::min(amn[(i << 1)], amn[((i << 1) | 1)]);
  bmn[i] = std::min(bmn[(i << 1)], bmn[((i << 1) | 1)]);
  ans[i] = Calc(((i << 1) | 1), ((l + r) >> 1) + 1, r, bmn[(i << 1)]);
}
void Mdf(int i, int l, int r, int a, int b, long long x) {
  if (r < a || b < l) return;
  if (a <= l && r <= b) return P(i, x);
  Pushdown(i), Mdf((i << 1), l, ((l + r) >> 1), a, b, x),
      Mdf(((i << 1) | 1), ((l + r) >> 1) + 1, r, a, b, x);
  bmn[i] = std::min(bmn[(i << 1)], bmn[((i << 1) | 1)]);
  ans[i] = Calc(((i << 1) | 1), ((l + r) >> 1) + 1, r, bmn[(i << 1)]);
}
int Solve2(int i, int l, int r, long long v) {
  if (l == r) return l;
  return amn[((i << 1) | 1)] <= v
             ? Solve2(((i << 1) | 1), ((l + r) >> 1) + 1, r, v)
             : Solve2((i << 1), l, ((l + r) >> 1), v);
}
int Solve(int i, int l, int r, long long p) {
  if (l == r) {
    int ret = amn[i] - p <= K ? l : 0;
    p = std::min(p, bmn[i]);
    return ret;
  }
  Pushdown(i);
  if (bmn[(i << 1)] < p) {
    if (ans[i] <= K)
      return Solve(((i << 1) | 1), ((l + r) >> 1) + 1, r, p = bmn[(i << 1)]);
    else {
      int ret = Solve((i << 1), l, ((l + r) >> 1), p);
      p = std::min(p, bmn[i]);
      return ret;
    }
  } else {
    int ret =
        amn[(i << 1)] <= K + p ? Solve2((i << 1), l, ((l + r) >> 1), K + p) : 0;
    return std::max(ret, Solve(((i << 1) | 1), ((l + r) >> 1) + 1, r, p));
  }
}
inline void DFS(int u) {
  static int stk[MN], tp;
  stk[++tp] = u;
  if (nxt[u] <= N) Mdf(1, 1, N, nxt[u] - 1, N, pre[u] - pre[nxt[u]]);
  if (u <= N) {
    int lb = 2, rb = tp - 1, mid, ret = 1;
    while (lb <= rb) {
      mid = (lb + rb) >> 1;
      if (pre[stk[mid]] - pre[u] > K)
        ret = mid, lb = mid + 1;
      else
        rb = mid - 1;
    }
    int rmax = stk[ret] - 1;
    long long _ = Infll;
    if (u > 1) Mdf(1, 1, N, 1, u - 1, Infll);
    Mdf(1, 1, N, rmax, N, -Infll);
    int pos = Solve(1, 1, N, _);
    Mdf(1, 1, N, rmax, N, Infll);
    if (u > 1) Mdf(1, 1, N, 1, u - 1, -Infll);
    Ans = std::max(Ans, pos - u + 1);
  }
  for (auto v : T[u]) DFS(v);
  if (nxt[u] <= N) Mdf(1, 1, N, nxt[u] - 1, N, pre[nxt[u]] - pre[u]);
  --tp;
}
inline void Init() {
  static int stk[MN], tp;
  scanf("%d%lld", &N, &K), Ans = 1;
  for (int i = 1; i < N; ++i) scanf("%lld", &W[i]);
  for (int i = 1; i <= N; ++i) scanf("%lld", &G[i]);
  for (int i = 2; i <= N; ++i)
    pre[i] = pre[i - 1] - G[i - 1] + W[i - 1],
    suf[i] = suf[i - 1] - G[i] + W[i - 1];
  pre[N + 1] = Infll, nxt[N + 1] = stk[tp = 1] = N + 1;
  for (int i = N; i >= 1; --i) {
    while (pre[stk[tp]] <= pre[i]) --tp;
    nxt[i] = stk[tp], stk[++tp] = i;
    T[nxt[i]].push_back(i);
  }
}
int main() {
  Init();
  Build(1, 1, N);
  DFS(N + 1);
  printf("%d\n", Ans);
  return 0;
}