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.*;

public class C implements Runnable{
	public static void main (String[] args) {new Thread(null, new C(), "_cf", 1 << 28).start();}

	int n;
	int[][] segments;
	HashMap<Integer, Integer> map;
	int[] rap;
	int[][] dp, build;
	int[] next;
	
	public void run() {
		FastScanner fs = new FastScanner();
		PrintWriter out = new PrintWriter(System.out);
		System.err.println("Go!");

		map = new HashMap<>();
		
		int max = Integer.MIN_VALUE;
		n = fs.nextInt();
		rap = new int[n];
		segments = new int[n][4];
		for(int i = 0; i < n; i++) {
			int ci = fs.nextInt();
			int ri = fs.nextInt();
			segments[i][0] = ci - ri;
			segments[i][1] = ci + ri;
			segments[i][2] = i;
			max = Math.max(max, segments[i][1]);
			if(!map.containsKey(segments[i][1])) {
				map.put(segments[i][1], map.size());
				rap[map.get(segments[i][1])] = segments[i][1];
			}
			segments[i][3] = map.get(segments[i][1]);
		}
		Arrays.sort(segments, 
		(a, b) -> Integer.compare(a[0], b[0]) == 0 ? Integer.compare(b[1], a[1]) : Integer.compare(a[0], b[0]));
		
		next = new int[n];
		for(int i = 0; i < n; i++) {
			next[i] = n;
			for(int j = i + 1; j < n; j++) {
				if(segments[j][0] >= segments[i][1]) {
					next[i] = j;
					break;
				}
			}
		}
		
//		for(int[] s : segments) System.out.println(Arrays.toString(s));
//		System.out.println(Arrays.toString(next));

		dp = new int[n][n];
		for(int[] d : dp) Arrays.fill(d, -1);
		build = new int[n][n];
		
		int res = solve(0, map.get(max));
		boolean[] use = new boolean[n];
		ArrayDeque<Integer> dq = new ArrayDeque<>();
		dq.add(0); dq.add(map.get(max));
		while(!dq.isEmpty()) {
			int idx = dq.pollFirst();
			int rightPoint = dq.pollFirst();
			if(idx == n) continue;
			if(segments[idx][0] > rap[rightPoint] || segments[idx][1] > rap[rightPoint]) {
				dq.add(idx+1); dq.add(rightPoint);
				continue;
			}
			
			if(build[idx][rightPoint] == 1) {
				use[segments[idx][2]] = true;
				dq.add(idx+1); dq.add(segments[idx][3]);
				dq.add(next[idx]); dq.add(rightPoint);
			}
			else {
				dq.add(idx+1); dq.add(rightPoint);
			}
		}
		out.println(res);
		for(int i = 0; i < n; i++) if(use[i]) {
			out.print(i+1 + " ");
		}
		out.println();
		
		out.close();
	}
	
	int solve(int idx, int rightPoint) {
		if(idx == n) return 0;
		if(dp[idx][rightPoint] != -1) return dp[idx][rightPoint];
		if(segments[idx][0] > rap[rightPoint] || segments[idx][1] > rap[rightPoint]) {
			int ret = solve(idx+1, rightPoint);
			build[idx][rightPoint] = 2; //do nothing
			return dp[idx][rightPoint] = ret;
		}
		int res = -1;
		
		//exclude?
		int ret = solve(idx + 1, rightPoint);
		if(ret > res) {
			res = ret;
			build[idx][rightPoint] = 2; //do nothing
		}

		//include?
		ret = 1 + solve(idx+1, segments[idx][3]) + solve(next[idx], rightPoint);
		if(ret > res) {
			res = ret;
			build[idx][rightPoint] = 1; //add this one
		}
		
		return dp[idx][rightPoint] = res;
	}
	
	class FastScanner {
		public int BS = 1<<16;
		public char NC = (char)0;
		byte[] buf = new byte[BS];
		int bId = 0, size = 0;
		char c = NC;
		double num = 1;
		BufferedInputStream in;

		public FastScanner() {
			in = new BufferedInputStream(System.in, BS);
		}

		public FastScanner(String s) throws FileNotFoundException {
			in = new BufferedInputStream(new FileInputStream(new File(s)), BS);
		}

		public char nextChar(){
			while(bId==size) {
				try {
					size = in.read(buf);
				}catch(Exception e) {
					return NC;
				}                
				if(size==-1)return NC;
				bId=0;
			}
			return (char)buf[bId++];
		}

		public int nextInt() {
			return (int)nextLong();
		}

		public long nextLong() {
			num=1;
			boolean neg = false;
			if(c==NC)c=nextChar();
			for(;(c<'0' || c>'9'); c = nextChar()) {
				if(c=='-')neg=true;
			}
			long res = 0;
			for(; c>='0' && c <='9'; c=nextChar()) {
				res = (res<<3)+(res<<1)+c-'0';
				num*=10;
			}
			return neg?-res:res;
		}

		public double nextDouble() {
			double cur = nextLong();
			return c!='.' ? cur:cur+nextLong()/num;
		}

		public String next() {
			StringBuilder res = new StringBuilder();
			while(c<=32)c=nextChar();
			while(c>32) {
				res.append(c);
				c=nextChar();
			}
			return res.toString();
		}

		public String nextLine() {
			StringBuilder res = new StringBuilder();
			while(c<=32)c=nextChar();
			while(c!='\n') {
				res.append(c);
				c=nextChar();
			}
			return res.toString();
		}

		public boolean hasNext() {
			if(c>32)return true;
			while(true) {
				c=nextChar();
				if(c==NC)return false;
				else if(c>32)return true;
			}
		}
		
		public int[] nextIntArray(int n) {
			int[] res = new int[n];
			for(int i = 0; i < n; i++) res[i] = nextInt();
			return res;
		}
		
	}

}