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;
inline char gc() {
  static char buf[100000], *p1 = buf, *p2 = buf;
  return p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 100000, stdin), p1 == p2)
             ? EOF
             : *p1++;
}
inline long long read() {
  long long x = 0;
  char ch = getchar();
  bool positive = 1;
  for (; !isdigit(ch); ch = getchar())
    if (ch == '-') positive = 0;
  for (; isdigit(ch); ch = getchar()) x = x * 10 + ch - '0';
  return positive ? x : -x;
}
inline void write(long long a) {
  if (a < 0) {
    a = -a;
    putchar('-');
  }
  if (a >= 10) write(a / 10);
  putchar('0' + a % 10);
}
inline void writeln(long long a) {
  write(a);
  puts("");
}
inline void wri(long long a) {
  write(a);
  putchar(' ');
}
const int N = 100005, M = 1 << 18 | 3;
const long long inf = 1e18;
int n, ans, w[N], g[N], h[N];
long long lim, pre[N], suf[N], max_p[M], lazy[M], max_suf[M], sp[M];
vector<int> v[N];
stack<int> q;
inline void cao(int nod, long long de) {
  lazy[nod] += de;
  max_suf[nod] += de;
  sp[nod] += de;
}
inline void pushdown(int nod) {
  if (lazy[nod]) {
    cao(nod << 1, lazy[nod]);
    cao(nod << 1 | 1, lazy[nod]);
    lazy[nod] = 0;
  }
}
long long calc(int l, int r, long long dq, int nod) {
  if (l == r) return dq - max_p[nod];
  pushdown(nod);
  int mid = (l + r) >> 1;
  return dq > max_suf[nod << 1]
             ? min(dq - max_p[nod << 1], calc(mid + 1, r, dq, nod << 1 | 1))
             : min(sp[nod], calc(l, mid, dq, nod << 1));
}
void build(int l, int r, int nod) {
  if (l == r) {
    max_suf[nod] = max_p[nod] = suf[l];
    return;
  }
  int mid = (l + r) >> 1;
  build(l, mid, nod << 1);
  build(mid + 1, r, nod << 1 | 1);
  max_p[nod] = max(max_p[nod << 1], max_p[nod << 1 | 1]);
  max_suf[nod] = max(max_suf[nod << 1], max_suf[nod << 1 | 1]),
  sp[nod] = calc(mid + 1, r, max_suf[nod << 1], nod << 1 | 1);
}
void insert(int l, int r, int i, int j, long long de, int nod) {
  if (i > j) return;
  if (l == i && r == j) {
    cao(nod, de);
    return;
  }
  pushdown(nod);
  int mid = (l + r) >> 1;
  if (j <= mid)
    insert(l, mid, i, j, de, nod << 1);
  else if (i > mid)
    insert(mid + 1, r, i, j, de, nod << 1 | 1);
  else {
    insert(l, mid, i, mid, de, nod << 1);
    insert(mid + 1, r, mid + 1, j, de, nod << 1 | 1);
  }
  max_suf[nod] = max(max_suf[nod << 1], max_suf[nod << 1 | 1]),
  sp[nod] = calc(mid + 1, r, max_suf[nod << 1], nod << 1 | 1);
}
int solve(int l, int r, long long dq, int nod) {
  if (l == r) return dq - max_p[nod] > lim ? 0 : l;
  pushdown(nod);
  int mid = (l + r) >> 1;
  if (dq - max_p[nod << 1 | 1] <= lim)
    return solve(mid + 1, r, dq, nod << 1 | 1);
  else
    return solve(l, mid, dq, nod << 1);
}
int ask(int l, int r, long long dq, int nod) {
  if (l == r) return dq - max_p[nod] > lim ? 0 : l;
  pushdown(nod);
  int mid = (l + r) >> 1;
  if (sp[nod] > lim && dq <= max_suf[nod << 1])
    return ask(l, mid, dq, nod << 1);
  int ans = ask(mid + 1, r, max(dq, max_suf[nod << 1]), nod << 1 | 1);
  return ans ? ans : solve(l, mid, dq, nod << 1);
}
void solve(int x) {
  h[++*h] = x;
  int l = 0, r = *h;
  while (l < r) {
    int mid = (l + r + 1) >> 1;
    if (pre[x] - pre[h[mid]] <= lim)
      r = mid - 1;
    else
      l = mid;
  }
  insert(1, n, 1, x - 1, -inf, 1);
  if (l) insert(1, n, h[l], n, inf, 1);
  ans = max(ans, ask(1, n, -inf, 1) - x + 1);
  if (l) insert(1, n, h[l], n, -inf, 1);
  insert(1, n, 1, x - 1, inf, 1);
  for (auto i : v[x]) {
    insert(1, n, x - 1, n, pre[i] - pre[x], 1);
    solve(i);
    insert(1, n, x - 1, n, pre[x] - pre[i], 1);
  }
  (*h)--;
}
int main() {
  n = read();
  lim = read();
  for (int i = 1; i < n; i++) w[i] = read();
  for (int i = 1; i <= n; i++) g[i] = read();
  for (int i = 1; i < n; i++) {
    pre[i + 1] = pre[i] - w[i] + g[i];
    suf[i + 1] = suf[i] - w[i] + g[i + 1];
  }
  build(1, n, 1);
  for (int i = 1; i <= n; i++) {
    while (q.size() && pre[i] < pre[q.top()]) {
      v[i].push_back(q.top());
      q.pop();
    }
    q.push(i);
  }
  while (q.size()) {
    solve(q.top());
    q.pop();
  }
  cout << ans << endl;
}