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;
struct Rec {
  int x1, y1, x2, y2;
  Rec() {}
  Rec(int x10, int y10, int x20, int y20)
      : x1(x10), y1(y10), x2(x20), y2(y20) {}
} s[100010];
int c[3010][3010];
int dp[3010][3010];
int calc(int x1, int y1, int x2, int y2) {
  return dp[x2][y2] - dp[x2][y1 - 1] - dp[x1 - 1][y2] + dp[x1 - 1][y1 - 1];
}
bool isru[3010][3010];
bool isrd[3010][3010];
bool islu[3010][3010];
bool isld[3010][3010];
int u[3010][3010];
int d[3010][3010];
int l[3010][3010];
int r[3010][3010];
set<int> ooxx;
set<int>::iterator ll;
int main() {
  int n;
  scanf("%d", &n);
  memset(isru, false, sizeof(isru));
  memset(isrd, false, sizeof(isrd));
  memset(islu, false, sizeof(islu));
  memset(isld, false, sizeof(isld));
  memset(c, 0, sizeof(c));
  memset(u, 0, sizeof(u));
  memset(d, 0, sizeof(d));
  memset(l, 0, sizeof(l));
  memset(r, 0, sizeof(r));
  for (int k = 1; k <= n; k++) {
    int x1, y1, x2, y2;
    scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
    x1++;
    y1++;
    x2++;
    y2++;
    if (x1 > x2) swap(x1, x2);
    if (y1 > y2) swap(y1, y2);
    x2--;
    y2--;
    s[k] = Rec(x1, y1, x2, y2);
    for (int i = x1; i <= x2; i++)
      for (int j = y1; j <= y2; j++) c[i][j] = k;
    islu[x1][y1] = true;
    isru[x1][y2] = true;
    isld[x2][y1] = true;
    isrd[x2][y2] = true;
    for (int i = x1; i <= x2; i++) {
      l[i][y1] = 1;
      r[i][y2] = 2;
    }
    for (int j = y1; j <= y2; j++) {
      u[x1][j] = 1;
      d[x2][j] = 1;
    }
  }
  memset(dp, 0, sizeof(dp));
  for (int i = 1; i <= 3001; i++)
    for (int j = 1; j <= 3001; j++) {
      dp[i][j] = dp[i - 1][j] + dp[i][j - 1] - dp[i - 1][j - 1];
      if (c[i][j] > 0) dp[i][j]++;
    }
  for (int i = 1; i <= 3001; i++) {
    for (int j = 3001; j >= 1; j--) {
      if (u[i][j]) u[i][j] = max(u[i][j], u[i][j + 1] + 1);
      if (d[i][j]) d[i][j] = max(d[i][j], d[i][j + 1] + 1);
    }
  }
  for (int j = 1; j <= 3001; j++) {
    for (int i = 3001; i >= 1; i--) {
      if (l[i][j]) l[i][j] = max(l[i][j], l[i + 1][j] + 1);
      if (r[i][j]) r[i][j] = max(r[i][j], r[i + 1][j] + 1);
    }
  }
  for (int k = 1; k <= n; k++) {
    int x1 = s[k].x1;
    int y1 = s[k].y1;
    for (int a = 1;; a++) {
      if (u[x1][y1] < a || l[x1][y1] < a) break;
      int x2 = x1 + a - 1;
      int y2 = y1 + a - 1;
      if (!islu[x1][y1] || !isru[x1][y2] || !isld[x2][y1] || !isrd[x2][y2])
        continue;
      if (r[x1][y2] < a || d[x2][y1] < a) continue;
      if (calc(x1, y1, x2, y2) != a * a) continue;
      ooxx.clear();
      for (int i = x1; i <= x2; i++)
        for (int j = y1; j <= y2; j++) ooxx.insert(c[i][j]);
      printf("YES %d\n", (int)ooxx.size());
      for (ll = ooxx.begin(); ll != ooxx.end(); ll++) printf("%d ", *ll);
      printf("\n");
      return 0;
    }
  }
  printf("NO\n");
  return 0;
}