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:
//package school1;

import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
import java.util.List;
import java.util.Scanner;
import java.util.TreeMap;

public class C4 {
	Scanner in;
	PrintWriter out;
//	String INPUT = "4 1 1 2 2 4 1 5 1";
//	String INPUT = "5 1 1 2 1 3 1 4 1 5 1";
	String INPUT = "";
	
	void solve()
	{
		int n = ni();
		TreeMap<Integer, BitSet> map = new TreeMap<Integer, BitSet>();
		for(int i = 0;i < n;i++){
			int c = ni();
			int r = ni();
			int left = c - r;
			int right = c + r;
			
			if(!map.containsKey(left))map.put(left, new BitSet());
			if(!map.containsKey(right))map.put(right, new BitSet());
			map.get(left).set(i);
			map.get(right).set(i);
		}
		List<BitSet> ends = new ArrayList<BitSet>(map.values());
		int[][] appears = new int[n][2];
		int[] ap = new int[n];
		for(int i = 0;i < ends.size();i++){
			for(int j = ends.get(i).nextSetBit(0);j != -1;j = ends.get(i).nextSetBit(j+1)){
				appears[j][ap[j]++] = i;
			}
		}
		int m = ends.size();
		
		BitSet[] othersb = new BitSet[m];
		int[][] others = new int[m][];
		for(int i = 0;i < m;i++)othersb[i] = new BitSet();
		for(int i = 0;i < n;i++){
			othersb[appears[i][1]].set(appears[i][0]);
		}
		for(int i = 0;i < m;i++){
			int[] x = new int[othersb[i].cardinality()];
			int p = 0;
			for(int j = othersb[i].nextSetBit(0);j != -1;j = othersb[i].nextSetBit(j+1)){
				x[p++] = j;
			}
			others[i] = x;
		}
//		tr(others);
		
		// 0-2 0-4 3-5 4-6
		// 0,2,3,4,5,6
		
		int[][] dp = new int[m][m];
//		long s = System.currentTimeMillis();
		int ct = 0;
		for(int i = 1;i < m;i++){
			for(int j = 0;j + i < m;j++){ // j - j+i
				int ca = dp[j][j+i-1] & 0xffff;
				int xs = j+i-1;
				
				int inf = Arrays.binarySearch(others[j+i], j+1);
				if(inf < 0)inf = -inf - 1;
//				int sup = Arrays.binarySearch(others[j+i], j+i-1);
//				if(sup < 0)sup = -sup - 2;
				for(int k = inf;k < others[j+i].length;k++){
					int v = (dp[j][others[j+i][k]] & 0xffff) + (dp[others[j+i][k]][j+i] & 0xffff);
					ct++;
					if(v > ca){
						ca = v;
						xs = others[j+i][k];
					}
				}
				dp[j][j+i] = (xs << 16) | (ca + (Arrays.binarySearch(others[j+i], j) >= 0 ? 1 : 0));
			}
		}
//		tr(m, ct);
//		tr(dp);
		out.println(dp[0][m-1] & 0xffff);
		BitSet bs = rec(dp, ends, 0, m - 1);
//		long g = System.currentTimeMillis();
//		tr(g - s + "ms");
		for(int i = bs.nextSetBit(0);i != -1;i = bs.nextSetBit(i+1)){
			out.print(i+1 + " ");
		}
		out.println();
	}
	
	BitSet rec(int[][] dp, List<BitSet> ends, int f, int t)
	{
		BitSet bs = new BitSet();
		bs.or(ends.get(f));
		bs.and(ends.get(t));
		if(t - f > 1){
			bs.or(rec(dp, ends, f, dp[f][t]>>16));
			bs.or(rec(dp, ends, dp[f][t]>>16, t));
		}
		return bs;
	}
	
	void run() throws Exception
	{
//		int n = 2000;
//		StringBuilder sb = new StringBuilder(n + " ");
//		Random r = new Random();
//		for(int i = 0;i < n;i++){
//			sb.append(r.nextInt(1000000)+1 + " ");
//			sb.append(r.nextInt(1000000)+1 + " ");
//		}
//		INPUT = sb.toString();

		in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT);
		out = new PrintWriter(System.out);

		solve();
		out.flush();
	}
	
	
	public static void main(String[] args) throws Exception
	{
		new C4().run();
	}
	
	int ni() { return Integer.parseInt(in.next()); }
	void tr(Object... o) { if(INPUT.length() != 0)System.out.println(o.length > 1 || o[0].getClass().isArray() ? Arrays.deepToString(o) : o[0]); }
}