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>
using namespace std;
int up[3010][3010], righ[3010][3010];
int bound[3010][3010];
int s[3010][3010];
void add_righ(int x1, int x2, int y) {
  for (int x = x1; x < x2; x++) righ[x][y] = 1;
}
void add_up(int x, int y1, int y2) {
  for (int y = y1; y < y2; y++) up[x][y] = 1;
}
int area(int x1, int y1, int x2, int y2) {
  return s[x1][y1] + s[x2][y2] - s[x1][y2] - s[x2][y1];
}
int id[3010][3010];
bool ans[100010];
void print(int x, int y, int d) {
  int i, j;
  for ((i) = 0; (i) < (int)(d); (i)++)
    for ((j) = 0; (j) < (int)(d); (j)++)
      if (id[x + i][y + j] != -1) ans[id[x + i][y + j]] = true;
  int cnt = 0;
  for ((i) = 0; (i) < (int)(100010); (i)++)
    if (ans[i]) cnt++;
  cout << "YES" << ' ' << cnt << endl;
  for ((i) = 0; (i) < (int)(100010); (i)++)
    if (ans[i]) printf("%d ", i + 1);
  cout << endl;
}
int main(void) {
  int N, x1, y1, x2, y2, i, j, x, y;
  for ((i) = 0; (i) < (int)(3010); (i)++)
    for ((j) = 0; (j) < (int)(3010); (j)++) id[i][j] = -1;
  cin >> N;
  for ((i) = 0; (i) < (int)(N); (i)++) {
    scanf("%d%d%d%d", &x1, &y1, &x2, &y2);
    add_up(x1, y1, y2);
    add_up(x2, y1, y2);
    add_righ(x1, x2, y1);
    add_righ(x1, x2, y2);
    for (x = x1 + 1; x <= x2; x++)
      for (y = y1 + 1; y <= y2; y++) s[x][y] = 1;
    for (x = x1 + 1; x <= x2; x++)
      for (y = y1 + 1; y <= y2; y++) id[x - 1][y - 1] = i;
  }
  for ((i) = 0; (i) < (int)(3000); (i)++)
    for ((j) = 0; (j) < (int)(3000); (j)++)
      s[i + 1][j + 1] += s[i][j + 1] + s[i + 1][j] - s[i][j];
  for ((x) = 0; (x) < (int)(3001); (x)++)
    for (y = 2999; y >= 0; y--)
      if (up[x][y] > 0) up[x][y] += up[x][y + 1];
  for ((y) = 0; (y) < (int)(3001); (y)++)
    for (x = 2999; x >= 0; x--)
      if (righ[x][y] > 0) righ[x][y] += righ[x + 1][y];
  for ((i) = 0; (i) < (int)(3000); (i)++)
    for ((j) = 0; (j) < (int)(3000); (j)++) {
      int d = 0;
      if (i > 0 && j > 0) d = max(d, bound[i - 1][j - 1] - 1);
      while (i + d + 1 <= 3000 && j + d + 1 <= 3000 &&
             area(i, j, i + d + 1, j + d + 1) == (d + 1) * (d + 1))
        d++;
      bound[i][j] = d;
    }
  for ((i) = 0; (i) < (int)(3000); (i)++)
    for ((j) = 0; (j) < (int)(3000); (j)++) {
      int dmax = min(bound[i][j], min(up[i][j], righ[i][j]));
      for (int d = 1; d <= dmax; d++)
        if (up[i + d][j] >= d && righ[i][j + d] >= d) {
          print(i, j, d);
          return 0;
        }
    }
  cout << "NO" << endl;
  return 0;
}