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 CPP):

Solution:
#include <bits/stdc++.h>
int mp[3100][3100];
int dp[3100][3100];
int up[3100][3100], right[3100][3100];
int up2[3100][3100], right2[3100][3100];
int xst[110000], xed[110000], yst[110000], yed[110000];
int res[110000], res_size;
int is_fill(int x1, int y1, int x2, int y2) {
  int area = dp[x2][y2] - dp[x1][y2] - dp[x2][y1] + dp[x1][y1];
  if (area == (x2 - x1) * (y2 - y1)) return 1;
  return 0;
}
int main() {
  int i, j, k, l, m, n;
  int a, b, c;
  int fg;
  scanf("%d", &n);
  for (i = 0; i < n; i++) scanf("%d%d%d%d", xst + i, yst + i, xed + i, yed + i);
  for (i = 0; i < 3020; i++)
    for (j = 0; j < 3020; j++) mp[i][j] = -1;
  for (k = 0; k < n; k++)
    for (i = xst[k]; i < xed[k]; i++)
      for (j = yst[k]; j < yed[k]; j++) mp[i][j] = k + 1;
  for (i = 0; i < 3020; i++) dp[i][0] = dp[0][i] = 0;
  for (i = 1; i < 3020; i++)
    for (j = 1; j < 3020; j++) {
      dp[i][j] = dp[i - 1][j] + dp[i][j - 1] - dp[i - 1][j - 1];
      if (mp[i - 1][j - 1] != -1) dp[i][j]++;
    }
  for (i = 3010; i >= 0; i--)
    for (j = 3010; j >= 0; j--) {
      up[i][j] = right[i][j] = 0;
      up2[i][j] = right2[i][j] = 0;
      if (mp[i][j] == -1) continue;
      if (i == 0 || mp[i - 1][j] != mp[i][j]) up[i][j] = up[i][j + 1] + 1;
      if (j == 0 || mp[i][j - 1] != mp[i][j]) right[i][j] = right[i + 1][j] + 1;
      if (mp[i + 1][j] != mp[i][j]) up2[i][j] = up2[i][j + 1] + 1;
      if (mp[i][j + 1] != mp[i][j]) right2[i][j] = right2[i + 1][j] + 1;
    }
  fg = 0;
  for (i = 0; i < 3010; i++)
    for (j = 0; j < 3010; j++)
      if (!fg) {
        m = up[i][j];
        if (m > right[i][j]) m = right[i][j];
        for (k = 1; k < m + 1; k++) {
          if (is_fill(i, j, i + k, j + k) == 0) break;
          if (up2[i + k - 1][j] >= k && right2[i][j + k - 1] >= k) {
            for (a = 0; a < n + 1; a++) res[a] = 0;
            for (a = i; a < i + k; a++)
              for (b = j; b < j + k; b++)
                if (mp[a][b] >= 0) res[mp[a][b]] = 1;
            c = 0;
            for (a = 0; a < n + 1; a++) c += res[a];
            printf("YES %d\n", c);
            for (a = 0; a < n + 1; a++)
              if (res[a]) printf("%d ", a);
            puts("");
            fg = 1;
            break;
          }
        }
      }
  if (!fg) puts("NO");
  return 0;
}