Problem: You are given n rectangles, labeled 1 through n. The corners of rectangles have integer coordinates and their edges are parallel to the Ox and Oy axes. The rectangles may touch each other, but they do not overlap (that is, there are no points that belong to the interior of more than one rectangle).

Your task is to determine if there's a non-empty subset of the rectangles that forms a square. That is, determine if there exists a subset of the rectangles and some square for which every point that belongs to the interior or the border of that square belongs to the interior or the border of at least one of the rectangles in the subset, and every point that belongs to the interior or the border of at least one rectangle in the subset belongs to the interior or the border of that square.

Input

First line contains a single integer n (1 ≤ n ≤ 105) — the number of rectangles. Each of the next n lines contains a description of a rectangle, with the i-th such line describing the rectangle labeled i. Each rectangle description consists of four integers: x1, y1, x2, y2 — coordinates of the bottom left and the top right corners (0 ≤ x1 < x2 ≤ 3000, 0 ≤ y1 < y2 ≤ 3000).

No two rectangles overlap (that is, there are no points that belong to the interior of more than one rectangle).

Output

If such a subset exists, print "YES" (without quotes) on the first line of the output file, followed by k, the number of rectangles in the subset. On the second line print k numbers — the labels of rectangles in the subset in any order. If more than one such subset exists, print any one. If no such subset exists, print "NO" (without quotes).

Examples

Input

9
0 0 1 9
1 0 9 1
1 8 9 9
8 1 9 8
2 2 3 6
3 2 7 3
2 6 7 7
5 3 7 6
3 3 5 6


Output

YES 5
5 6 7 8 9


Input

4
0 0 1 9
1 0 9 1
1 8 9 9
8 1 9 8


Output

NO

Note

The first test case looks as follows:

<image>

Note that rectangles 6, 8, and 9 form a square as well, and would be an acceptable answer.

The second test case looks as follows:

<image>

Solution (in JAVA):

Solution:
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.StringTokenizer;

import static java.lang.Math.max;

import static java.util.Arrays.deepToString;

public class D {
	static void solve() {
		int n = nextInt();
		int[] X1 = new int[n];
		int[] X2 = new int[n];
		int[] Y1 = new int[n];
		int[] Y2 = new int[n];
		int SIZE = 0;
		for (int i = 0; i < n; i++) {
			X1[i] = nextInt();
			Y1[i] = nextInt();
			X2[i] = nextInt();
			Y2[i] = nextInt();
			SIZE = max(SIZE, X1[i]);
			SIZE = max(SIZE, X2[i]);
			SIZE = max(SIZE, Y1[i]);
			SIZE = max(SIZE, Y2[i]);
		}
		debug(SIZE);

		int[][] fillHor = new int[SIZE + 1][SIZE + 1];
		int[][] fillVert = new int[SIZE + 1][SIZE + 1];
		int[][] sumAll = new int[SIZE + 1][SIZE + 1];
		for (int i = 0; i < n; i++) {
			int x1 = X1[i];
			int x2 = X2[i];
			int y1 = Y1[i];
			int y2 = Y2[i];
			for (int x = x1 + 1; x <= x2; x++) {
				fillHor[y1][x] = fillHor[y2][x] = 1;
			}
			for (int y = y1 + 1; y <= y2; y++) {
				fillVert[x1][y] = fillVert[x2][y] = 1;
			}
			for (int x = x1 + 1; x <= x2; x++) {
				for (int y = y1 + 1; y <= y2; y++) {
					sumAll[x][y] = 1;
				}
			}
		}

		for (int y = 0; y <= SIZE; y++) {
			for (int x = 1; x <= SIZE; x++) {
				fillHor[y][x] += fillHor[y][x - 1];
			}
		}
		for (int x = 0; x <= SIZE; x++) {
			for (int y = 1; y <= SIZE; y++) {
				fillVert[x][y] += fillVert[x][y - 1];
			}
		}
		for (int x = 1; x <= SIZE; x++) {
			for (int y = 1; y <= SIZE; y++) {
				sumAll[x][y] += sumAll[x - 1][y] + sumAll[x][y - 1] - sumAll[x - 1][y - 1];
			}
		}

		for (int i = 0; i < n; i++) {
			int x1 = X1[i];
			int y1 = Y1[i];
			for (int x2 = x1 + 1, y2 = y1 + 1, len = 1; x2 <= SIZE && y2 <= SIZE; x2++, y2++, len++) {
				if (sumAll[x2][y2] - sumAll[x1][y2] - sumAll[x2][y1] + sumAll[x1][y1] != len * len) {
					break;
				}
				int sum = 0;
				sum += fillHor[y1][x2] - fillHor[y1][x1];
				sum += fillVert[x1][y2] - fillVert[x1][y1];
				if (sum != len << 1) {
					break;
				}
				sum += fillHor[y2][x2] - fillHor[y2][x1];
				sum += fillVert[x2][y2] - fillVert[x2][y1];
				if (sum == len << 2) {
					writer.print("YES ");
					List<Integer> rects = new ArrayList<>();
					for (int j = 0; j < n; j++) {
						if (x1 <= X1[j] && X2[j] <= x2 && y1 <= Y1[j] && Y2[j] <= y2) {
							rects.add(j);
						}
					}
					writer.println(rects.size());
					for (int num : rects) {
						writer.print((num + 1) + " ");
					}
					return;
				}
			}
		}
		writer.println("NO");
	}

	public static void main(String[] args) throws Exception {
		reader = new BufferedReader(new InputStreamReader(System.in));
		writer = new PrintWriter(System.out);
		Locale.setDefault(Locale.US);

		setTime();
		solve();
		printTime();
		printMemory();

		writer.close();
	}

	static BufferedReader reader;
	static PrintWriter writer;
	static StringTokenizer tok = new StringTokenizer("");
	static long systemTime;

	static void debug(Object... o) {
		System.err.println(deepToString(o));
	}

	static void setTime() {
		systemTime = System.currentTimeMillis();
	}

	static void printTime() {
		System.err.println("Time consumed: " + (System.currentTimeMillis() - systemTime));
	}

	static void printMemory() {
		System.err.println("Memory consumed: "
				+ (Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) / 1000 + "kb");
	}

	static String next() {
		while (!tok.hasMoreTokens()) {
			String w = null;
			try {
				w = reader.readLine();
			} catch (Exception e) {
				e.printStackTrace();
			}
			if (w == null)
				return null;
			tok = new StringTokenizer(w);
		}
		return tok.nextToken();
	}

	static int nextInt() {
		return Integer.parseInt(next());
	}

	static long nextLong() {
		return Long.parseLong(next());
	}

	static double nextDouble() {
		return Double.parseDouble(next());
	}

	static BigInteger nextBigInteger() {
		return new BigInteger(next());
	}
}