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 int size(const T& c) {
  return c.size();
}
using namespace std;
int fastMax(int x, int y) { return (((y - x) >> (32 - 1)) & (x ^ y)) ^ y; }
int fastMin(int x, int y) { return (((y - x) >> (32 - 1)) & (x ^ y)) ^ x; }
struct rect {
  int x1, y1, x2, y2;
} r[110000];
const int maxn = 3000 + 10;
const int si = 3000;
int a[maxn][maxn];
int b[maxn][maxn], s[maxn][maxn];
int g[maxn][maxn][4];
vector<int> res;
int n, x, y, x2, y2;
int calc(int y1, int x1, int y2, int x2, int c) {
  return g[y2][x2][c] - g[y2][x1 - 1][c] - g[y1 - 1][x2][c] +
         g[y1 - 1][x1 - 1][c];
}
int main() {
  scanf("%d", &n);
  for (int i = (1), _b = (n); i <= _b; i++) {
    scanf("%d%d%d%d", &x, &y, &x2, &y2);
    r[i].x1 = x + 1;
    r[i].y1 = y + 1;
    r[i].x2 = x2;
    r[i].y2 = y2;
    for (int i = (y + 1), _b = (y2); i <= _b; i++) {
      a[i][x + 1]++;
      a[i][x2 + 1]--;
      g[i][x + 1][0]++;
      g[i][x2][2]++;
    }
    for (int i = (x + 1), _b = (x2); i <= _b; i++) {
      g[y2][i][1]++;
      g[y + 1][i][3]++;
    }
  }
  for (int i = (1), _b = (si); i <= _b; i++) {
    for (int j = (1), _b = (si); j <= _b; j++) {
      a[i][j] = a[i][j - 1] + a[i][j];
      s[i][j] = s[i][j - 1] + s[i - 1][j] - s[i - 1][j - 1] + a[i][j];
      for (int k = (0), _b = (3); k <= _b; k++) {
        g[i][j][k] =
            g[i - 1][j][k] + g[i][j - 1][k] - g[i - 1][j - 1][k] + g[i][j][k];
      }
    }
  }
  for (int i = (1), _b = (si); i <= _b; i++)
    for (int j = (1), _b = (si); j <= _b; j++) {
      int y = i;
      int x = j;
      while (y >= 1 && x >= 1) {
        if (s[i][j] - s[y - 1][j] - s[i][x - 1] + s[y - 1][x - 1] ==
                (i - y + 1) * (j - x + 1) &&
            calc(y, j, i, j, 2) == (i - y + 1) &&
            calc(i, x, i, j, 1) == (j - x + 1)) {
          if (calc(y, x, y, j, 3) == (j - x + 1) &&
              calc(y, x, i, x, 0) == (i - y + 1)) {
            cout << "YES ";
            res.clear();
            for (int k = (1), _b = (n); k <= _b; k++)
              if (r[k].y1 >= y && r[k].x1 >= x && r[k].y2 <= i && r[k].x2 <= j)
                res.push_back(k);
            cout << res.size() << endl;
            for (int i = (0), _b = (res.size() - 1); i <= _b; i++)
              cout << res[i] << ' ';
            return 0;
          }
          y--;
          x--;
        } else
          break;
      }
    }
  cout << "NO";
  fclose(stdin);
  fclose(stdout);
  return 0;
}