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 JAVA):

Solution:
import java.io.*;
import java.util.*;

import static java.lang.Math.*;

public class Main {
    BufferedReader in;
    PrintWriter out;
    StringTokenizer st;

    ArrayList<Integer>[] x;

    static class Pair {
        int x, y;
        int id;

        @Override
        public String toString() {
            return "Pair [x=" + x + ", y=" + y + ", id=" + id + "]";
        }

        public Pair(int x, int y, int id) {
            this.x = x;
            this.y = y;
            this.id = id;
        }

    }

    static class Cmp1 implements Comparator<Pair> {

        @Override
        public int compare(Pair o1, Pair o2) {
            return o1.x - o2.x;
        }
    }

    static class Cmp2 implements Comparator<Pair> {

        @Override
        public int compare(Pair o1, Pair o2) {
            return o1.y - o2.y;
        }
    }

    int n;
    Pair[] v;

    short[][] dp;
    short[][] is;

    /*
     * int rec(int l, int r) { short ret = dp[l][r]; if (ret == -1) { if (l >=
     * r) ret = 0; else { ret = rec(l + 1, r); for (int p : x[l]) { if (p >= r)
     * continue; int a = rec(l, p) + rec(p, r); if (a > ret) ret = a; } } if
     * (is[l][r] > 0) ++ret; dp[l][r] = ret; } return ret; }
     */
    void calc(int l, int r) {
        for (int i = r; i >= 0; --i)
            for (int j = i + 1; j <= r; ++j) {
                short ret = dp[i + 1][j];
                for (int p : x[i]) {
                    if (p >= j)
                        continue;
                    short a = (short) (dp[i][p] + dp[p][j]);
                    if (a > ret) {
                        ret = a;
                    }
                }
                if (is[i][j] > 0)
                    ++ret;
                dp[i][j] = ret;
            }
    }

    void rec(int l, int r, ArrayList<Short> ret) {
        if (is[l][r] > 0)
            ret.add(is[l][r]);
        if (l >= r)
            return;
        int mx = dp[l + 1][r];
        int idx = -1;
        for (int p : x[l]) {
            if (p >= r)
                continue;
            int a = dp[l][p] + dp[p][r];
            if (a > mx) {
                mx = a;
                idx = p;
            }
        }
        if (idx == -1)
            rec(l + 1, r, ret);
        else {
            rec(l, idx, ret);
            rec(idx, r, ret);
        }
    }

    void test() throws FileNotFoundException {
        PrintWriter out = new PrintWriter("test.txt");
        int n = 2000;
        out.println(n);
        for (int i = 0; i < n; ++i) {
            out.println(i + " " + (i + 1));
        }
        out.close();
    }

    void solve() throws IOException {
        // test();
        n = ni();
        v = new Pair[n];
        TreeSet<Integer> set = new TreeSet<Integer>();
        for (int i = 0; i < v.length; i++) {
            int c = ni();
            int r = ni();
            v[i] = new Pair(c - r, c + r, i);
            set.add(c - r);
            set.add(c + r);
        }
        Integer[] t = new Integer[set.size()];
        set.toArray(t);
        for (int i = 0; i < n; ++i) {
            int a = Arrays.binarySearch(t, v[i].x);
            v[i].x = a;
            a = Arrays.binarySearch(t, v[i].y);
            v[i].y = a;
        }
        is = new short[set.size()][set.size()];
        x = new ArrayList[set.size()];
        for (int i = 0; i < x.length; i++) {
            x[i] = new ArrayList<Integer>();
        }
        for (int i = 0; i < n; ++i) {
            is[v[i].x][v[i].y] = (short) (v[i].id + 1);
            x[v[i].x].add(v[i].y);
        }
        dp = new short[set.size()][set.size()];
        for (int i = 0; i < dp.length; i++) {
            Arrays.fill(dp[i], (short) 0);
        }
        // if (n != 2000)
        calc(0, set.size() - 1);
        int a = 0;

        a = dp[0][set.size() - 1];
        out.println(a);
        ArrayList<Short> ret = new ArrayList<Short>();
        // if (n != 2000) {
        rec(0, set.size() - 1, ret);
        for (int q : ret)
            out.print(q + " ");
        // }
    }

    public Main() throws IOException {
        Locale.setDefault(Locale.US);
        in = new BufferedReader(new InputStreamReader(System.in));
        out = new PrintWriter(System.out);
        solve();
        in.close();
        out.close();
    }

    String ns() throws IOException {
        while (st == null || !st.hasMoreTokens()) {
            st = new StringTokenizer(in.readLine());
        }
        return st.nextToken();
    }

    int ni() throws IOException {
        return Integer.valueOf(ns());
    }

    long nl() throws IOException {
        return Long.valueOf(ns());
    }

    double nd() throws IOException {
        return Double.valueOf(ns());
    }

    public static void main(String[] args) throws IOException {
        new Main();
    }
}