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.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashMap;

public class C39 {
	static int n;
	static int dp[][] = new int[4010][];
	static Pair ar[]=new Pair[4010];
	static HashMap<Pair,Integer> m1 = new HashMap<Pair,Integer>();
	static HashMap<Integer,Integer> m3=new HashMap<Integer,Integer>();
	static int lowerbound(int s,int e,int k) {
		int r=-1;
		while(s<=e) {
			int mid=(s+e)/2;
			int v=ar[mid].f;
			if(v==k){
				r=mid;
				e=e-1;
			}
			else if(v>k) {
				e=e-1;
			}
			else if(v<k) {
				s=s+1;
			}
		}
		return r;
	}
	static int cal(int l,int r) {
		if(l>=r) {
			return 0;
		}
		if(dp[l][r]!=-1) {
			return dp[l][r];
		}
		int c=0;
		if(m1.containsKey(new Pair(l,r))) {
			c++;
		}
		
		int s=-1;
		if(m3.containsKey(l)) {
			s=m3.get(l);
		}
		//int x=s;
		int maxi=c;
		//System.out.println(s+" l="+(l+1)+" r="+r);
		maxi=c+cal(l+1,r);
		for(;s>=0&&s<n&&ar[s].f==l&&ar[s].s<r;s++) {
			maxi=Math.max(maxi, c+cal(l,ar[s].s)+cal(ar[s].s,r));
		}
		
		dp[l][r]=maxi;
//		maxi=c+cal(l+1,r);
//		//System.out.println("===>l+1 "+(l+1)+" r="+r+" ans="+dp[l+1][r]);
//		s=x;
//		for(;s>=0&&s<n&&ar[s].f==l&&ar[s].s<r;s++) {
//			System.out.println("====>cal l,i = "+dp[l][ar[s].s]+" +cal i,r ="+dp[ar[s].s][r]+" ="+(dp[l][ar[s].s]+dp[ar[s].s][r]));
//		}
//		System.out.println("l="+l+" r="+r+" c="+c+" ans="+dp[l][r]);
		return dp[l][r];
	}
	
	 static void printcal(int l,int r) {
		if(l>=r) {
			return ;
		}
		int c=0;
		if(m1.containsKey(new Pair(l,r))) {
			c++;
		}
		if(c==1) {
			System.out.print(m1.get(new Pair(l,r))+" ");
		}
		int maxi=dp[l][r]-c;
		
		if(maxi==dp[l+1][r]) {
			printcal(l+1, r);
			return;
		}
		int s=-1;
		if(m3.containsKey(l)) {
			s=m3.get(l);
		}
		for(;s>=0&&s<n&&ar[s].f==l&&ar[s].s<r;s++) {
			if(maxi==dp[l][ar[s].s]+dp[ar[s].s][r]) {
				printcal(l,ar[s].s);
				printcal(ar[s].s,r);
				return;
			}
		}
	}
	
	
	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
		n=Integer.parseInt(br.readLine());
		int l[]=new int[n+1];
		int r[]=new int[n+1];
		int ex[]= new int[2*n+10];
		for(int i=1;i<=n;i++) {
			String s[]=br.readLine().split(" ");
			int c=Integer.parseInt(s[0]);
			int ra=Integer.parseInt(s[1]);
			l[i]=c-ra;
			r[i]=c+ra;
			ex[2*i-1]=c-ra;
			ex[2*i-2]=c+ra;
		}
		
		Arrays.sort(ex,0,2*n);
		HashMap<Integer,Integer> m = new HashMap<Integer,Integer>();
		int c=0;
		for(int i=0;i<2*n;i++) {
			if(i<2*n-1&&ex[i]!=ex[i+1]) {
				m.put(ex[i],c);
				c++;
			}
		}
		m.put(ex[2*n-1], c);
		for(int i=1;i<=n;i++) {
			l[i]=m.get(l[i]);
			r[i]=m.get(r[i]);
			m1.put(new Pair(l[i],r[i]),i);
			ar[i-1]=new Pair(l[i],r[i]);
		}
		Arrays.sort(ar,0,n);
		for(int i=n-1;i>=0;i--) {
			m3.put(ar[i].f, i);
		}
		for(int i=0;i<4010;i++) {
			dp[i]=new int[4010];
			Arrays.fill(dp[i], -1);
		}
		
		System.out.println(cal(0,c));
		printcal(0,c);
		
		
	}
}



class Pair implements Comparable<Pair>{
	public int f;
	public int s;
	public Pair(int f, int s) {
		super();
		this.f = f;
		this.s = s;
	}
	public Pair() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public int compareTo(Pair o) {
		// TODO Auto-generated method stub
		if(this.f<o.f)return -1;
		if(this.f>o.f)return 1;
		if(this.f==o.f) {
			if(this.s<o.s)return -1;
			if(this.s>o.s)return 1;
		}
		return 0;
	}
	@Override
	public String toString() {
		return "Pairld [l=" + f + ", d=" + s + "]";
	}
	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return f*10000+s;
	}
	@Override
	public boolean equals(Object obj) {
		Pair o = (Pair) obj;
		if(o.f==f&&o.s==s) {
			return true;
		}
		return false;
	}
	
	
}