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 kMaxN = 2000;
int n, a[kMaxN + 1];
int t[kMaxN], p[kMaxN], h[kMaxN + 2], *hh = h + 1, tc, g[kMaxN + 2],
                                      *gg = g + 1;
vector<int> cho[kMaxN + 1];
bool fir = true;
struct Node {
  long long l, r;
  int x;
} s[kMaxN + 1];
bool CmpS(const int &a, const int &b) {
  return ((s[a].r - s[a].l) < (s[b].r - s[b].l));
}
bool CmpRR(const Node &a, const Node &b) { return (a.r < b.r); }
void Dfs(int u) {
  for (vector<int>::iterator it = cho[u].begin(); it != cho[u].end(); ++it) {
    if (!fir)
      printf(" ");
    else
      fir = false;
    printf("%d", s[*it].x + 1);
    Dfs(*it);
  }
}
int main() {
  scanf("%d", &n);
  for (int i = 0, c, r; i < n; ++i) {
    scanf("%d%d", &c, &r);
    s[i].l = c - r, s[i].r = c + r, s[i].x = i;
  }
  s[n].l = INT_MIN, s[n].r = INT_MAX, s[n].x = n;
  ++n;
  sort(s, s + n, CmpRR);
  int seq[kMaxN + 1];
  for (int i = 0; i < n; ++i) seq[i] = i;
  sort(seq, seq + n, CmpS);
  for (int i = 0; i < n; ++i) {
    int u = seq[i];
    tc = 0;
    for (int v = 0; v < n; ++v)
      if (s[v].l >= s[u].l && s[v].r <= s[u].r && v != u) t[tc++] = v;
    a[u] = 1;
    if (tc) {
      for (int j = -1; j < tc; ++j) hh[j] = INT_MIN, gg[j] = 0;
      for (int j = 0; j < tc; ++j) p[j] = -1;
      for (int j = 1; j < tc; ++j) {
        int lb = 0, rb = j;
        while (lb + 1 < rb) {
          int mid = (lb + rb) >> 1;
          if (s[t[mid]].r <= s[t[j]].l)
            lb = mid;
          else
            rb = mid;
        }
        if (s[t[lb]].r <= s[t[j]].l) p[j] = lb;
      }
      hh[-1] = 0;
      for (int j = 0; j < tc; ++j) {
        hh[j] = hh[j - 1], gg[j] = 0;
        if (hh[p[j]] + a[t[j]] > hh[j]) {
          hh[j] = hh[p[j]] + a[t[j]];
          gg[j] = 1;
        }
      }
      int end = tc - 1;
      while (end != -1) {
        if (gg[end])
          cho[u].push_back(t[end]), end = p[end];
        else
          --end;
      }
      a[u] += hh[tc - 1];
    }
  }
  printf("%d\n", a[n - 1] - 1);
  Dfs(n - 1);
  puts("");
  return 0;
}