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;
const int Inf = 0x3f3f3f3f;
const long long INF = 0x3f3f3f3f3f3f3f3fll;
int n;
short qzh[3005][3005], qzi[3005][3005];
int pre[3005][3005];
int x1[1 << 17], x2[1 << 17], y1II11II11III11I1III11II111IIII1II1I1[1 << 17],
    y2[1 << 17];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= (n); ++i) {
    scanf("%d%d%d%d", x1 + i, y1II11II11III11I1III11II111IIII1II1I1 + i, x2 + i,
          y2 + i);
    ++x1[i];
    ++y1II11II11III11I1III11II111IIII1II1I1[i];
    ++x2[i];
    ++y2[i];
    for (int j = (x1[i]); j <= (x2[i] - 1); ++j)
      qzh[j][y2[i]] = 1, qzh[j][y1II11II11III11I1III11II111IIII1II1I1[i]] = 1;
    for (int j = (y1II11II11III11I1III11II111IIII1II1I1[i]); j <= (y2[i] - 1);
         ++j)
      qzi[x2[i]][j] = 1, qzi[x1[i]][j] = 1;
    ++pre[x1[i]][y1II11II11III11I1III11II111IIII1II1I1[i]];
    ++pre[x2[i]][y2[i]];
    --pre[x1[i]][y2[i]];
    --pre[x2[i]][y1II11II11III11I1III11II111IIII1II1I1[i]];
  }
  for (int i = 1; i <= (3003); ++i)
    for (int j = 1; j <= (3003); ++j)
      pre[i][j] += pre[i - 1][j] + pre[i][j - 1] - pre[i - 1][j - 1];
  for (int i = 1; i <= (3003); ++i)
    for (int j = 1; j <= (3003); ++j)
      pre[i][j] += pre[i - 1][j] + pre[i][j - 1] - pre[i - 1][j - 1];
  for (int i = 1; i <= (3003); ++i)
    for (int j = 0; j < (3003); ++j) qzh[i][j] += qzh[i - 1][j];
  for (int i = 0; i < (3003); ++i)
    for (int j = 1; j <= (3003); ++j) qzi[i][j] += qzi[i][j - 1];
  bool hv = 0;
  int l1, r1, l2, r2;
  for (int i = 1; i <= (n); ++i) {
    const int lx(x1[i]), ly(y1II11II11III11I1III11II111IIII1II1I1[i]);
    int ch = 0;
    for (int rx = (lx); rx <= (3003); ++rx) {
      ch += (rx - lx) << 1 | 1;
      const int ry(ly + rx - lx);
      if (qzh[rx][ry + 1] - qzh[lx - 1][ry + 1] != rx - lx + 1) continue;
      if (qzh[rx][ly] - qzh[lx - 1][ly] != rx - lx + 1) break;
      if (qzi[rx + 1][ry] - qzi[rx + 1][ly - 1] != ry - ly + 1) continue;
      if (qzi[lx][ry] - qzi[lx][ly - 1] != ry - ly + 1) break;
      if (pre[rx][ry] - pre[lx - 1][ry] - pre[rx][ly - 1] +
              pre[lx - 1][ly - 1] !=
          ch) {
        break;
      }
      hv = 1;
      l1 = lx, r1 = rx, l2 = ly, r2 = ry;
      break;
    }
    if (hv) break;
  }
  if (!hv) {
    puts("NO");
  } else {
    vector<int> vc;
    for (int i = 1; i <= (n); ++i)
      if (x1[i] >= l1 && y1II11II11III11I1III11II111IIII1II1I1[i] >= l2 &&
          x2[i] - 1 <= r1 && y2[i] - 1 <= r2)
        vc.push_back(i);
    printf("YES %d\n", ((int)(vc).size()));
    for (int i = 0; i < (((int)(vc).size())); ++i) printf("%d ", vc[i]);
    puts("");
  }
  return 0;
}