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 aa[200000][4];
int a[3100][3100][2];
int a1[3100][3100][2];
int le[3100][3100][2];
int s[3100][3100];
int n;
void output(int x, int y, int l) {
  int i;
  vector<int> ans;
  ans.clear();
  for (i = 0; i < n; i++)
    if ((aa[i][0] >= x) && (aa[i][2] <= x + l) && (aa[i][1] >= y) &&
        (aa[i][3] <= y + l))
      ans.push_back(i + 1);
  printf("YES %d\n", ans.size());
  for (i = 0; i < ans.size(); i++) {
    if (i != 0) {
      printf(" ");
    }
    printf("%d", ans[i]);
  }
  printf("\n");
}
int main() {
  int i, j, k, l, tmp, x1, y1, x2, y2, x, y, now, prev;
  memset(a, -1, sizeof(a));
  memset(s, 0, sizeof(s));
  memset(a1, -1, sizeof(a1));
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d%d%d%d", &x1, &y1, &x2, &y2);
    if (x2 > a[x1][y1][0]) a[x1][y1][0] = x2;
    if (y2 > a[x1][y1][1]) a[x1][y1][1] = y2;
    if (x2 > a[x1][y2][0]) a[x1][y2][0] = x2;
    if (y2 > a[x2][y1][1]) a[x2][y1][1] = y2;
    a1[x1][y1][0] = x2;
    a1[x1][y1][1] = y2;
    for (j = x1 + 1; j <= x2; j++)
      for (k = y1 + 1; k <= y2; k++) s[j][k] = 1;
    aa[i][0] = x1;
    aa[i][1] = y1;
    aa[i][2] = x2;
    aa[i][3] = y2;
  }
  for (i = 1; i <= 3000; i++)
    for (j = 1; j <= 3000; j++) {
      tmp = s[i][j];
      s[i][j] = 0;
      if (i > 1) s[i][j] += s[i - 1][j];
      if (j > 1) s[i][j] += s[i][j - 1];
      if ((i > 1) && (j > 1)) s[i][j] -= s[i - 1][j - 1];
      s[i][j] += tmp;
    }
  for (i = 0; i <= 3000; i++) {
    prev = 0;
    now = 0;
    for (j = 0; j <= 3000; j++) {
      if (a[i][j][1] > now) now = a[i][j][1];
      if (now == j) {
        for (k = prev; k <= j; k++) le[i][k][1] = now;
        now = j + 1;
        prev = j + 1;
      }
    }
    prev = 0;
    now = 0;
    for (j = 0; j <= 3000; j++) {
      if (a[j][i][0] > now) now = a[j][i][0];
      if (now == j) {
        for (k = prev; k <= j; k++) le[k][i][0] = now;
        now = j + 1;
        prev = j + 1;
      }
    }
  }
  for (i = 0; i <= 3000; i++)
    for (j = 0; j <= 3000; j++) {
      x = i;
      y = j;
      while (a1[x][y][1] != -1) {
        y = a1[x][y][1];
        if ((le[i][j][0] >= i + y - j) && (le[i][y][0] >= i + y - j) &&
            (le[i + y - j][j][1] >= y) &&
            (s[i + y - j][y] - s[i + y - j][j] - s[i][y] + s[i][j] ==
             (y - j) * (y - j))) {
          output(i, j, y - j);
          return 0;
        }
      }
      x = i;
      y = j;
      while (a1[x][y][0] != -1) {
        x = a1[x][y][0];
        if ((le[i][j][1] >= j + x - i) && (le[x][j][1] >= j + x - i) &&
            (le[i][j + x - i][0] >= x) &&
            (s[x][j + x - i] - s[i][j + x - i] - s[x][j] + s[i][j] ==
             (x - i) * (x - i))) {
          output(i, j, x - i);
          return 0;
        }
      }
    }
  printf("NO\n");
}