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 int maxn = 2013;
struct Tseg {
  int id, l, r;
} seg[maxn];
int n;
namespace Dinit {
vector<int> w;
bool cmp_r(const Tseg &a, const Tseg &b) {
  return a.r < b.r || a.r == b.r && a.l > b.l;
}
void init() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    int o, r;
    scanf("%d%d", &o, &r);
    w.push_back(seg[i].l = o - r);
    w.push_back(seg[i].r = o + r);
    seg[i].id = i;
  }
  sort(w.begin(), w.end());
  w.erase(unique(w.begin(), w.end()), w.end());
  for (int i = 1; i <= n; ++i) {
    seg[i].l = lower_bound(w.begin(), w.end(), seg[i].l) - w.begin();
    seg[i].r = lower_bound(w.begin(), w.end(), seg[i].r) - w.begin();
  }
  sort(seg + 1, seg + n + 1, cmp_r);
}
}  // namespace Dinit
namespace Dsolve {
int f[2 * maxn][2], fin[maxn];
vector<int> son[maxn];
vector<int> inseg;
int w[2 * maxn][2];
bool cmp_r(int a, int b) { return seg[a].r < seg[b].r; }
int work_in(int p) {
  inseg.clear();
  for (int i = 1; i <= p - 1; ++i)
    if (seg[i].l >= seg[p].l && seg[i].r <= seg[p].r) {
      inseg.push_back(i);
    }
  sort(inseg.begin(), inseg.end(), cmp_r);
  memset(w, 0, sizeof(w));
  vector<int>::iterator iter = inseg.begin();
  for (int i = seg[p].l; i <= seg[p].r; ++i) {
    if (i > seg[p].l) w[i][0] = w[i - 1][0], w[i][1] = w[i - 1][1];
    for (; iter != inseg.end() && i == seg[*iter].r; ++iter) {
      if (w[i][0] < w[seg[*iter].l][0] + fin[*iter] + 1) {
        w[i][0] = w[seg[*iter].l][0] + fin[*iter] + 1;
        w[i][1] = *iter;
      }
    }
  }
  for (int i = seg[p].r;; i = seg[w[i][1]].l)
    if (w[i][1])
      son[p].push_back(w[i][1]);
    else
      break;
  return w[seg[p].r][0];
}
void work() {
  int nowseg = 1;
  for (int i = 0; i <= seg[n].r; ++i) {
    if (i > 0) f[i][0] = f[i - 1][0], f[i][1] = f[i - 1][1];
    for (; i == seg[nowseg].r; ++nowseg) {
      fin[nowseg] = work_in(nowseg);
      if (f[i][0] < f[seg[nowseg].l][0] + fin[nowseg] + 1) {
        f[i][0] = f[seg[nowseg].l][0] + fin[nowseg] + 1;
        f[i][1] = nowseg;
      }
    }
  }
}
vector<int> use;
void get_in(int p) {
  use.push_back(seg[p].id);
  for (int i = 0; i < son[p].size(); ++i) {
    get_in(son[p][i]);
  }
}
void get_use(int x) {
  if (!f[x][1]) return;
  get_in(f[x][1]);
  get_use(seg[f[x][1]].l);
}
void print() {
  printf("%d\n", f[seg[n].r][0]);
  get_use(seg[n].r);
  for (int i = 0; i < use.size(); ++i) printf("%d ", use[i]);
  printf("\n");
}
void solve() {
  work();
  print();
}
}  // namespace Dsolve
int main() {
  Dinit::init();
  Dsolve::solve();
  return 0;
}