Problem: There are lots of theories concerning the origin of moon craters. Most scientists stick to the meteorite theory, which says that the craters were formed as a result of celestial bodies colliding with the Moon. The other version is that the craters were parts of volcanoes.

An extraterrestrial intelligence research specialist professor Okulov (the namesake of the Okulov, the author of famous textbooks on programming) put forward an alternate hypothesis. Guess what kind of a hypothesis it was –– sure, the one including extraterrestrial mind involvement. Now the professor is looking for proofs of his hypothesis.

Professor has data from the moon robot that moves linearly in one direction along the Moon surface. The moon craters are circular in form with integer-valued radii. The moon robot records only the craters whose centers lay on his path and sends to the Earth the information on the distance from the centers of the craters to the initial point of its path and on the radii of the craters.

According to the theory of professor Okulov two craters made by an extraterrestrial intelligence for the aims yet unknown either are fully enclosed one in the other or do not intersect at all. Internal or external tangency is acceptable. However the experimental data from the moon robot do not confirm this theory! Nevertheless, professor Okulov is hopeful. He perfectly understands that to create any logical theory one has to ignore some data that are wrong due to faulty measuring (or skillful disguise by the extraterrestrial intelligence that will be sooner or later found by professor Okulov!) That’s why Okulov wants to choose among the available crater descriptions the largest set that would satisfy his theory.

Input

The first line has an integer n (1 ≤ n ≤ 2000) — the number of discovered craters. The next n lines contain crater descriptions in the "ci ri" format, where ci is the coordinate of the center of the crater on the moon robot’s path, ri is the radius of the crater. All the numbers ci and ri are positive integers not exceeding 109. No two craters coincide.

Output

In the first line output the number of craters in the required largest set. In the next line output space-separated numbers of craters that this set consists of. The craters are numbered from 1 to n in the order in which they were given in the input data. The numbers may be output in any order. If the result is not unique, output any.

Examples

Input

4
1 1
2 2
4 1
5 1


Output

3
1 2 4

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const long double eps = 1e-9;
vector<vector<int> > g;
vector<int> top;
int xabs(int a) { return a < 0 ? -a : +a; }
vector<bool> passed;
void dfs(int u) {
  passed[u] = true;
  for (int i = 0; i < g[u].size(); ++i)
    if (!passed[g[u][i]]) dfs(g[u][i]);
  top.push_back(u);
}
vector<int> f, p;
int fn;
void finit(int n) {
  fn = n;
  f.assign(n, -100);
  p.assign(n, 0);
}
void fmodify(int r, int v) {
  for (int i = r; i < fn; i |= i + 1)
    if (v > f[i]) f[i] = v, p[i] = r;
}
int fget(int r) {
  int pos = p[r];
  int ee = f[r];
  for (int i = r; i >= 0; i &= i + 1, --i)
    if (f[i] > ee) ee = f[i], pos = p[i];
  return pos;
}
int main() {
  int n;
  cin >> n;
  vector<int> c(n + 1);
  vector<int> r(n + 1);
  c[0] = 0;
  r[0] = 2000000001;
  for (int i = 1; i <= n; ++i) cin >> c[i] >> r[i];
  n++;
  g.resize(n);
  for (int i = 0; i < n; ++i)
    for (int j = 0; j < n; ++j)
      if (i != j)
        if (c[i] + r[i] >= c[j] + r[j] && c[i] - r[i] <= c[j] - r[j])
          g[i].push_back(j);
  passed.assign(n, false);
  dfs(0);
  vector<int> dp(n);
  vector<vector<int> > add(n);
  for (int i = 0; i < n; ++i) {
    int u = top[i];
    vector<pair<int, int> > s;
    for (int j = 0; j < g[u].size(); ++j)
      s.push_back(make_pair(c[g[u][j]] + r[g[u][j]], g[u][j]));
    sort(s.begin(), s.end());
    vector<int> z(s.size(), -1), prev(s.size(), -1);
    finit(s.size());
    for (int i = 0; i < s.size(); ++i) {
      z[i] = dp[s[i].second];
      int st =
          upper_bound(s.begin(), s.begin() + i,
                      make_pair(s[i].first - 2 * r[s[i].second], 1000000)) -
          s.begin();
      st--;
      if (st >= 0) {
        st = fget(st);
        z[i] = z[st] + dp[s[i].second];
        prev[i] = st;
      }
      fmodify(i, z[i]);
    }
    int pos = max_element(z.begin(), z.end()) - z.begin();
    if (pos == z.size()) pos = -1;
    if (pos != -1)
      dp[u] = z[pos] + 1;
    else
      dp[u] = 1;
    vector<int> rr;
    while (pos >= 0) {
      rr.push_back(s[pos].second);
      pos = prev[pos];
    }
    add[u] = rr;
  }
  vector<int> res;
  queue<int> q;
  q.push(0);
  while (q.size()) {
    int u = q.front();
    q.pop();
    for (int i = 0; i < add[u].size(); ++i)
      res.push_back(add[u][i]), q.push(add[u][i]);
  }
  cout << res.size() << endl;
  for (int i = 0; i < res.size(); ++i) {
    if (i) cout << " ";
    cout << res[i];
  }
  cout << endl;
  return 0;
}