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;
template <class T>
inline T min(T &a, T &b) {
  return a < b ? a : b;
}
template <class T>
inline T max(T &a, T &b) {
  return a > b ? a : b;
}
template <class T>
void read(T &x) {
  char ch;
  while ((ch = getchar()) && !isdigit(ch))
    ;
  x = ch - '0';
  while ((ch = getchar()) && isdigit(ch)) x = x * 10 + ch - '0';
}
struct point {
  int x, y;
  point() {}
  point(int _x, int _y) : x(_x), y(_y) {}
};
const int N = 110000;
struct lj {
  int x1, y1, x2, y2;
} P[N];
int n, al, ans[N], dt[3010][3010], isxu[3010][3010], isxd[3010][3010],
    isyu[3010][3010], isyd[3010][3010], Is[3010][3010], maxn, maxm;
void get_ans(int x1, int y1, int x2, int y2) {
  for (int i = 1; i <= n; i++)
    if (P[i].x1 >= x1 && P[i].x1 <= x2 && P[i].x2 >= x1 && P[i].x2 <= x2 &&
        P[i].y1 >= y1 && P[i].y1 <= y2 && P[i].y2 >= y1 && P[i].y2 <= y2)
      ans[++al] = i;
  printf("YES %d\n", al);
  for (int i = 1; i <= al; i++) printf("%d ", ans[i]);
  puts("");
  exit(0);
}
inline int ask_sum(int x1, int y1, int x2, int y2) {
  x1--;
  y1--;
  return dt[x2][y2] - dt[x1][y2] - dt[x2][y1] + dt[x1][y1];
}
inline int ask_isxu(int x1, int y1, int x2, int y2) {
  x1--;
  y1--;
  return isxu[x2][y2] - isxu[x1][y2] - isxu[x2][y1] + isxu[x1][y1];
}
inline int ask_isxd(int x1, int y1, int x2, int y2) {
  x1--;
  y1--;
  return isxd[x2][y2] - isxd[x1][y2] - isxd[x2][y1] + isxd[x1][y1];
}
inline int ask_isyu(int x1, int y1, int x2, int y2) {
  x1--;
  y1--;
  return isyu[x2][y2] - isyu[x1][y2] - isyu[x2][y1] + isyu[x1][y1];
}
inline int ask_isyd(int x1, int y1, int x2, int y2) {
  x1--;
  y1--;
  return isyd[x2][y2] - isyd[x1][y2] - isyd[x2][y1] + isyd[x1][y1];
}
int main() {
  read(n);
  for (int i = 1; i <= n; i++) {
    read(P[i].x1), read(P[i].y1), read(P[i].x2), read(P[i].y2), P[i].x1++,
        P[i].y1++;
    maxn = max(maxn, P[i].x2);
    maxm = max(maxm, P[i].y2);
  }
  for (int _ = 1; _ <= n; _++) {
    for (int i = P[_].x1; i <= P[_].x2; i++)
      for (int j = P[_].y1; j <= P[_].y2; j++) dt[i][j] = 1;
    for (int i = P[_].x1; i <= P[_].x2; i++)
      isxd[i][P[_].y1] = isxu[i][P[_].y2] = 1;
    for (int i = P[_].y1; i <= P[_].y2; i++)
      isyd[P[_].x1][i] = isyu[P[_].x2][i] = 1;
    for (int i = P[_].x1; i <= P[_].x2; i++)
      Is[i][P[_].y1] = Is[i][P[_].y2] = _;
    for (int i = P[_].y1; i <= P[_].y2; i++)
      Is[P[_].x1][i] = Is[P[_].x2][i] = _;
  }
  for (int i = 1; i <= maxn; i++)
    for (int j = 1; j <= maxm; j++)
      dt[i][j] += dt[i - 1][j] + dt[i][j - 1] - dt[i - 1][j - 1],
          isxu[i][j] += isxu[i - 1][j] + isxu[i][j - 1] - isxu[i - 1][j - 1],
          isyd[i][j] += isyd[i - 1][j] + isyd[i][j - 1] - isyd[i - 1][j - 1],
          isxd[i][j] += isxd[i - 1][j] + isxd[i][j - 1] - isxd[i - 1][j - 1],
          isyu[i][j] += isyu[i - 1][j] + isyu[i][j - 1] - isyu[i - 1][j - 1];
  for (int _ = 1; _ <= n; _++) {
    int x = P[_].x1, y = P[_].y1;
    for (int i = 1; i <= 3000; i++)
      if (x + i - 1 <= maxn && y + i - 1 <= maxm) {
        if (ask_sum(x, y, x + i - 1, y + i - 1) != i * i) break;
        if (ask_isxd(x, y, x + i - 1, y) != i) break;
        if (ask_isyd(x, y, x, y + i - 1) != i) break;
        if (Is[x - 1][y] == Is[x][y] || Is[x + i][y] == Is[x + i - 1][y])
          continue;
        if (Is[x][y - 1] == Is[x][y] || Is[x][y + i] == Is[x][y + i - 1])
          continue;
        if (ask_isxu(x, y + i - 1, x + i - 1, y + i - 1) != i ||
            Is[x - 1][y + i - 1] == Is[x][y + i - 1] ||
            Is[x + i][y + i - 1] == Is[x + i - 1][y + i - 1])
          continue;
        if (ask_isyu(x + i - 1, y, x + i - 1, y + i - 1) != i ||
            Is[x + i - 1][y - 1] == Is[x + i - 1][y] ||
            Is[x + i - 1][y + i] == Is[x + i - 1][y + i - 1])
          continue;
        get_ans(x, y, x + i - 1, y + i - 1);
      } else
        break;
  }
  puts("NO");
}