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.lang.reflect.Array;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

/**
 * User: RK
 * Date: 11.12.2010
 * Time: 14:02:54
 */
public class solveCircles {
    private static class Circle{
        int center, radius;
        int indexLeft=-1, indexRight=-1, index;
        private Circle(int center, int radius, int index) {
            this.center = center;
            this.radius = radius;
            this.index = index;
        }

    }
    private static class Border{
        Circle circle;
        long border;
        boolean isLeft = true;

        private Border(long border, boolean isLeft) {
            this.border = border;
            this.isLeft = isLeft;
        }
    }
    private static Circle[] circles = null;
    private static Border[] borders = null;
    private static int[][] mem = null;
    private static int[] answer = null;

    public static int rec(int left, int right){
        if (left>=right) return 0;
        if (mem[left][right]!=0) return mem[left][right]-1;
        if (!borders[left].isLeft) {
            int res = rec(left+1,right);
            mem[left][right] = res+1;
            return res;
        }

        int current=0, max;
        max = rec(left+1,right);
        if (borders[left].border+2*borders[left].circle.radius<=borders[right].border)
            current = rec(borders[left].circle.indexRight+1,right)+1+rec(left+1,borders[left].circle.indexRight-1);
        max = Math.max(max,current);
        mem[left][right] = max+1;
        return max;
    }

    public static boolean buildAnswer(int left, int right, int count, int indexAnswer){
        if (left>=right) return count==0;
        if (rec(left,right)!=count) return false;
        if (!borders[left].isLeft) return buildAnswer(left+1,right,count,indexAnswer);

        if (buildAnswer(left+1,right,count,indexAnswer)) return true;

        int c = rec(borders[left].circle.indexRight+1,right),
            c2 = rec(left+1,borders[left].circle.indexRight-1);
        answer[indexAnswer] = borders[left].circle.index;
        buildAnswer(borders[left].circle.indexRight+1,right,c,indexAnswer+1);
        buildAnswer(left+1,borders[left].circle.indexRight-1,c2,indexAnswer+1+c);

        return true;
    }
    public static void main(String... args){
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        circles = new Circle[n];
        borders = new Border[2*n];
        mem = new int[2*n][2*n];
        for (int i=0;i<n;i++){
            circles[i] = new Circle(in.nextInt(), in.nextInt(),i+1);
            borders[2*i] = new Border((long)circles[i].center-circles[i].radius,true);
            borders[2*i+1] = new Border((long)circles[i].center+circles[i].radius,false);
            borders[2*i].circle = borders[2*i+1].circle = circles[i];
        }
        Arrays.sort(borders,new Comparator<Border>(){
            public int compare(Border b1, Border b2) {
                long result = b1.border - b2.border;
                if (result==0) result = (b1.isLeft?1:0)-(b2.isLeft?1:0);
                if (result==0) result = !b1.isLeft?(b1.circle.radius-b2.circle.radius):(b2.circle.radius-b1.circle.radius);
                if (result==0) return 0;
                return result>0?1:-1;
            }
        });
        for (int i=0;i<borders.length;i++){
            if (borders[i].isLeft)
                borders[i].circle.indexLeft = i;
            else
                borders[i].circle.indexRight = i;
        }
        int ans = rec(0,2*n-1);
        answer = new int[ans];
        buildAnswer(0,2*n-1,ans,0);
        System.out.println(ans);
        for (int i=0;i<ans;i++)
            System.out.print(answer[i]+" ");
        System.out.println();

    }
}