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;
int const N = 2e3 + 5;
int n;
int c[N], r[N];
int dp[2 * N][2 * N];
int last_right[2 * N][2 * N];
int lobound[2 * N];
vector<int> chose;
map<pair<int, int>, int> encode_intervals;
struct Compare {
  bool operator()(const pair<int, int>& a, const pair<int, int>& b) const {
    if (a.second != b.second)
      return a.second < b.second;
    else
      return a.first < b.first;
  }
};
set<int> endings;
set<pair<int, int>, Compare> ball;
vector<pair<int, int>> ball_vector;
map<int, int> wo;
void chosing(int a, int b) {
  if (ball.find({a, b}) != ball.end())
    chose.push_back(encode_intervals[{a, b}]);
  int t = last_right[a][b];
  if (t == 0) return;
  if (wo[c[t] - r[t]] == a && wo[c[t] + r[t]] == b) return;
  chosing(wo[c[t] - r[t]], wo[c[t] + r[t]]);
  chosing(a, wo[c[t] - r[t]]);
}
int main() {
  scanf("%d ", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d %d", &c[i], &r[i]);
    endings.insert(c[i] - r[i]);
    endings.insert(c[i] + r[i]);
  }
  for (auto it = endings.begin(); it != endings.end(); it++) {
    int r = wo.size();
    wo[(*it)] = r + 1;
  }
  for (int i = 1; i <= n; i++) {
    ball.insert({wo[c[i] - r[i]], wo[c[i] + r[i]]});
    encode_intervals[{wo[c[i] - r[i]], wo[c[i] + r[i]]}] = i;
  }
  for (auto it = ball.begin(); it != ball.end(); it++) {
    if (ball_vector.size() > 0) {
      int rrrr = ball_vector.size() - 1;
      if (ball_vector[rrrr].second < (*it).second) {
        lobound[ball_vector[rrrr].second] = rrrr;
      }
    }
    ball_vector.push_back((*it));
  }
  lobound[ball_vector[ball_vector.size() - 1].second] = ball_vector.size() - 1;
  for (int i = 1; i < wo.size(); i++) {
    for (int j = 1; j + i <= wo.size(); j++) {
      int fn = lobound[i + j];
      dp[j][i + j] = dp[j][i + j - 1];
      if (last_right[j][i + j] == 0)
        last_right[j][i + j] = last_right[j][i + j - 1];
      while (ball_vector[fn].second == i + j && ball_vector[fn].first > j) {
        int f1 = ball_vector[fn].first;
        int f2 = ball_vector[fn].second;
        if (dp[j][i + j] < dp[j][f1] + dp[f1][f2]) {
          dp[j][i + j] = dp[j][f1] + dp[f1][f2];
          last_right[j][i + j] = encode_intervals[{f1, f2}];
        }
        fn--;
      }
      if (fn < 0) continue;
      if (ball_vector[fn].second == i + j && ball_vector[fn].first == j) {
        dp[j][i + j] += 1;
        if (last_right[j][i + j] == 0)
          last_right[j][i + j] = encode_intervals[{j, i + j}];
        last_right[j][i + j + 1] = encode_intervals[{j, i + j}];
      }
    }
  }
  chosing(1, wo.size());
  printf("%d \n", dp[1][wo.size()]);
  for (auto it = chose.begin(); it != chose.end(); it++) {
    printf("%d ", (*it));
  }
  return 0;
}