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;
pair<int, int> p[4040];
map<int, int> mp;
int n, id[4040], x[4040], y[4040], d[4040 << 1], runs, nx[4040], ny[4040];
int gas[4040], a[4040][4040];
int f[4040][4040], first[4040][4040], add[4040][4040], ans[4040 << 1];
vector<int> v;
bool cmp(int i, int j) { return p[i] < p[j]; }
void calc(int st, int en) {
  if (st >= en) return;
  if (add[st][en]) v.push_back(add[st][en]);
  if (!first[st][en]) {
    calc(st + 1, en);
    return;
  }
  int r = first[st][en];
  v.push_back(r);
  int mid = ny[r];
  st = nx[r];
  if (add[st][en]) v.push_back(add[st][en]);
  calc(st, mid), calc(mid, en);
}
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    int c, r;
    scanf("%d %d", &c, &r);
    p[i].first = c - r, p[i].second = c + r;
    id[i] = i;
  }
  sort(id + 1, id + n + 1, cmp);
  for (int i = 1; i <= n; i++) {
    x[i] = p[id[i]].first, y[i] = p[id[i]].second;
    d[++runs] = x[i], d[++runs] = y[i];
  }
  sort(d + 1, d + runs + 1);
  int m = unique(d + 1, d + runs + 1) - d - 1;
  for (int i = 1; i <= m; i++) mp[d[i]] = i;
  for (int i = 1; i <= n; i++) nx[i] = mp[x[i]], ny[i] = mp[y[i]];
  int j = 1;
  for (int i = 1; i <= m; i++) {
    while (x[j] == d[i]) a[i][gas[i]++] = j, j++;
  }
  for (int L = 1; L < m; L++) {
    for (int i = 1; i <= m - L; i++) {
      int j = i + L;
      f[i][j] = f[i + 1][j];
      for (int k = 0; k < gas[i]; k++) {
        int r = ny[a[i][k]];
        if (r < j) {
          if (f[i][j] < f[i][r] + f[r][j]) {
            f[i][j] = f[i][r] + f[r][j];
            first[i][j] = a[i][k];
          }
        } else {
          if (r == j) f[i][j]++, add[i][j] = a[i][k];
          break;
        }
      }
    }
  }
  printf("%d\n", f[1][m]);
  calc(1, m);
  int cnt = 0;
  for (int i = 0; i < v.size(); i++) ans[cnt++] = v[i];
  sort(ans, ans + cnt);
  cnt = unique(ans, ans + cnt) - ans;
  for (int i = 0; i < cnt; i++) printf("%d ", id[ans[i]]);
  puts("");
  return 0;
}