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 java.math.*;
 
public class Main {
	static int t,m,mod=998244353,maxn=1000000,q,n,k;
    static int INF=(int)1e8;
    
    void solve(PrintWriter out, Reader in) throws IOException{
        n = in.nextInt();
        
        int[] a = new int[n];
        int[] b = new int[n];
        
        // intialization part
        ArrayList<Node> arr = new ArrayList<>();
        TreeSet<Integer> set = new TreeSet<>();
        int c,r;
        for(int i=0;i<n;i++){
            c = in.nextInt();
            r = in.nextInt();
            
            a[i] = c-r;
            b[i] = c+r;
            set.add(a[i]);
            set.add(b[i]);
        }
        
        
        int cnt = 1;
        Map<Integer,Integer> map = new HashMap<>();
        for(int e:set){
            map.put(e,cnt++);
        }
        
        ArrayList<Node> crts[] = new ArrayList[cnt+1];
        for(int i=1;i<=cnt;i++) crts[i] = new ArrayList<Node>();
        
        for(int i=0;i<n;i++){
            c = map.get(a[i]);
            r = map.get(b[i]);
            a[i] = c;
            b[i] = r;
            arr.add(new Node(c,r,r-c+1,i+1));
            crts[c].add(new Node(r,i+1));
        }
        arr.add(new Node(1,cnt,cnt,0));
        Collections.sort(arr);
        
        
        
        // dp part.
        int[][] par = new int[cnt+1][cnt+1];
        int[][] dp  = new int[cnt+1][cnt+1];
        ArrayList<Integer> list[] = new ArrayList[n+1];
        for(int i=0;i<=n;i++) list[i] = new ArrayList<Integer>();
        int tmp;
        for(Node e:arr){
            for(int i=e.l;i<=e.r;i++){
                if(i!=e.l && dp[e.l][i-1]>=dp[e.l][i]){
                    dp[e.l][i] = dp[e.l][i-1];
                    par[e.l][i] = par[e.l][i-1];
                    
                }
                for(Node end:crts[i]){
                    if(end.r<=e.r){
                        if(dp[e.l][end.r]<=dp[e.l][i]+dp[i][end.r]){
                            dp[e.l][end.r] = dp[e.l][i]+dp[i][end.r];
                            par[e.l][end.r] = end.id;
                        }
                    }
                }
            }
            tmp = par[e.l][e.r];
            while(tmp!=0){
                list[e.id].add(tmp);
                tmp = par[e.l][a[tmp-1]];
            }
            dp[e.l][e.r]++;
        }
        
        out.println(dp[1][cnt]-1);
        
        Queue<Integer> q = new LinkedList<>();
        q.add(0);
        int elm;
        while(q.size()!=0){
            elm = q.remove();
            if(elm!=0) out.print(elm+" ");
            for(int e:list[elm]) q.add(e);
        }
        out.println();
        
        
    }
    
    
    static class Node implements Comparable<Node>{
        int l,r,len,id;
        
        Node(int l,int r,int len,int id){
            this.l = l;
            this.r = r;
            this.len = len;
            this.id = id;
        }
        Node(int r,int id){
            this.r = r;
            this.id = id;
        }
        
        public int compareTo(Node o){
            return this.len - o.len;
        }
    }
    
    static class Reader {
 
    private InputStream mIs;
    private byte[] buf = new byte[1024];
    private int curChar;
    private int numChars;
 
    public Reader() {
        this(System.in);
    }
 
    public Reader(InputStream is) {
        mIs = is;
    }
 
    public int read() {
        if (numChars == -1) {
            throw new InputMismatchException();
 
    }
        if (curChar >= numChars) {
            curChar = 0;
            try {
                numChars = mIs.read(buf);
            } catch (IOException e) {
                throw new InputMismatchException();
            }
            if (numChars <= 0) {
                return -1;
            }
        }
        return buf[curChar++];
    }
 
    public String nextLine() {
        int c = read();
        while (isSpaceChar(c)) {
            c = read();
        }
        StringBuilder res = new StringBuilder();
        do {
            res.appendCodePoint(c);
            c = read();
        } while (!isEndOfLine(c));
        return res.toString();
    }
 
    public String next() {
        int c = read();
        while (isSpaceChar(c)) {
            c = read();
        }
        StringBuilder res = new StringBuilder();
        do {
            res.appendCodePoint(c);
            c = read();
        } while (!isSpaceChar(c));
        return res.toString();
    }
 
    double nextDouble()
    {
        return Double.parseDouble(next());
    }
 
    public long nextLong() {
        int c = read();
        while (isSpaceChar(c)) {
            c = read();
        }
        int sgn = 1;
        if (c == '-') {
            sgn = -1;
            c = read();
        }
        long res = 0;
        do {
            if (c < '0' || c > '9') {
                throw new InputMismatchException();
            }
            res *= 10;
            res += c - '0';
            c = read();
        } while (!isSpaceChar(c));
        return res * sgn;
    }
 
    public int nextInt() {
        int c = read();
        while (isSpaceChar(c)) {
            c = read();
        }
        int sgn = 1;
        if (c == '-') {
            sgn = -1;
            c = read();
        }
        int res = 0;
        do {
            if (c < '0' || c > '9') {
                throw new InputMismatchException();
            }
            res *= 10;
            res += c - '0';
            c = read();
        } while (!isSpaceChar(c));
        return res * sgn;
    }
 
    public boolean isSpaceChar(int c) {
        return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
    }
 
    public boolean isEndOfLine(int c) {
        return c == '\n' || c == '\r' || c == -1;
    }
 
    }
    public static void main(String[] args) throws IOException {
        PrintWriter out = new PrintWriter(System.out);
        Reader in = new Reader();
        Main solver = new Main();
        solver.solve(out, in);
        out.flush();
        out.close();
 
    }
}