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.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StreamTokenizer;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;

public class School1C {

    static StreamTokenizer in = new StreamTokenizer(new BufferedReader(
            new InputStreamReader(System.in)));
    static PrintWriter out = new PrintWriter(System.out);

    static int nextInt() throws Exception {
        in.nextToken();
        return (int) in.nval;
    }

    static String nextString() throws Exception {
        in.nextToken();
        return in.sval;
    }

    public static void main(String[] args) throws Exception {
        n = nextInt();
        
        a = new int[n+1][3];
        lefts = new int[n+1];
        memo = new int[n+1][n+1];
        r = new boolean[n+1][n+1];
        prev = new int[n+1];

        a[n][0] = -2000000001;
        a[n][1] = 2000000001;
        a[n][2] = n;
        for (int i = 0; i < n; i++) {
            int c = nextInt(), r = nextInt();
            a[i][0] = c-r;
            a[i][1] = c+r;
            a[i][2] = i;
        }

        Arrays.sort(a, new Comparator<int[]>() {
            public int compare(int[] a, int[] b) {
                return a[1] > b[1] ? 1 : a[1] < b[1] ? -1 : a[0] > b[0] ? -1
                        : 1;
            }
        });

        for (int i = 0; i <= n; i++)
            lefts[i] = a[i][0];
        
        for (int i = 0; i <= n; i++) {
            int p = i - 1;
            while (p >= 0 && a[p][1] > a[i][0])
                p--;
            prev[i] = p;
        }

        for (int[] c : memo)
            Arrays.fill(c, -1);

        out.println(solve(n, n) - 1);
        res = new LinkedList<Integer>();
        build(n, n);
        res.remove(0);
        Collections.sort(res);
        for (Integer R : res)
            out.print((R+1)+" ");
        out.println();

        out.flush();
    }
    
    static int n;
    static int[][] a;
    static int[] lefts;
    static int[][] memo;
    static boolean[][] r;
    static List<Integer> res;
    static int[] prev;

    static int solve(int v, int y) {
        int left = lefts[y];

        if (v < 0)
            return 0;
        if (a[v][1] <= left)
            return 0;
        if (memo[v][y] != -1)
            return memo[v][y];

        int res = solve(v - 1, y);

        if (a[v][0] >= left) {
            int cur = solve(v - 1, v);
            cur += solve(prev[v], y);

            if (cur + 1 > res) {
                res = cur + 1;
                r[v][y] = true;
            }
        }

        return memo[v][y] = res;
    }
    
    static void build(int v, int y) {
        int left = lefts[y];

        if (v < 0)
            return;
        if (a[v][1] <= left)
            return;
        
        if (r[v][y]) {
            res.add(a[v][2]);
            build(v-1, v);
            build(prev[v], y);
        }
        else build(v-1, y);
    }
}