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>
#pragma comment(linker, "/stack:64000000")
using namespace std;
const double eps = 1e-9;
const double PI = 2.0 * acos(0.0);
int v[3002][3002];
int area[3002][3002];
int hb[3002][3002][2];
int vb[3002][3002][2];
int nmax = 3002;
inline int get_area(int a, int b) {
  if (a < 0 || b < 0) return 0;
  return area[a][b];
}
int sol[100007];
int main() {
  int id = 0;
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int x1, x2, y1, y2;
    cin >> x1 >> y1 >> x2 >> y2;
    for (int px = x1; px < x2; ++px)
      for (int py = y1; py < y2; ++py) v[px + 1][py + 1] = i + 1;
  }
  for (int i = 0; i < nmax; ++i) {
    for (int j = 0; j < nmax; ++j) {
      if (v[i][j] == 0) continue;
      hb[i][j][0] = hb[i][j][1] = 1;
      if (i > 0 && v[i][j] == v[i - 1][j]) hb[i][j][0] = 0;
      if (i + 1 < nmax && v[i][j] == v[i + 1][j]) hb[i][j][1] = 0;
    }
  }
  for (int i = 0; i < nmax; ++i)
    for (int j = nmax - 1; j >= 0; --j) {
      if (j + 1 < nmax) {
        if (hb[i][j][0]) hb[i][j][0] += hb[i][j + 1][0];
        if (hb[i][j][1]) hb[i][j][1] += hb[i][j + 1][1];
      }
    }
  for (int j = 0; j < nmax; ++j) {
    for (int i = 0; i < nmax; ++i) {
      if (v[i][j] == 0) continue;
      vb[i][j][0] = vb[i][j][1] = 1;
      if (j > 0 && v[i][j] == v[i][j - 1]) vb[i][j][0] = 0;
      if (j + 1 < nmax && v[i][j] == v[i][j + 1]) vb[i][j][1] = 0;
    }
  }
  for (int j = 0; j < nmax; ++j) {
    for (int i = nmax - 1; i >= 0; --i) {
      if (i + 1 < nmax) {
        if (vb[i][j][0]) vb[i][j][0] += vb[i + 1][j][0];
        if (vb[i][j][1]) vb[i][j][1] += vb[i + 1][j][1];
      }
    }
  }
  for (int i = 0; i < nmax; ++i)
    for (int j = 0; j < nmax; ++j) {
      area[i][j] =
          get_area(i - 1, j) + get_area(i, j - 1) - get_area(i - 1, j - 1);
      if (v[i][j]) area[i][j] += 1;
    }
  int best = 0;
  int bx, by;
  for (int i = 0; i < nmax; ++i)
    for (int j = 0; j < nmax; ++j)
      if (hb[i][j][0] > best && vb[i][j][0] > best) {
        int W = hb[i][j][0];
        int H = vb[i][j][0];
        for (int best2 = best + 1; best2 <= min(W, H); ++best2) {
          int px = i + best2 - 1;
          int py = j + best2 - 1;
          if (px >= nmax || py >= nmax) break;
          if (get_area(px, py) - get_area(px, j - 1) - get_area(i - 1, py) +
                  get_area(i - 1, j - 1) !=
              best2 * best2)
            break;
          if (hb[px][j][1] < best2) continue;
          if (vb[i][py][1] < best2) continue;
          best = best2;
          bx = i;
          by = j;
        }
      }
  if (best == 0) {
    cout << "NO\n";
    return 0;
  }
  cout << "YES " << '\n';
  set<int> my_corr;
  for (int i = 0; i < best; ++i)
    for (int j = 0; j < best; ++j) {
      sol[v[bx + i][by + j]] = 1;
      if (v[bx + i][by + j] == 0) cout << "zero;";
      my_corr.insert(v[bx + i][by + j]);
    }
  for (int i = 0; i < nmax; ++i)
    for (int j = 0; j < nmax; ++j) {
      if (i >= bx && i < bx + best && j >= by && j < by + best) continue;
      if (my_corr.find(v[i][j]) != my_corr.end()) cout << "outside";
    }
  vector<int> vlad;
  for (int i = 1; i <= n; ++i)
    if (sol[i]) vlad.push_back(i);
  cout << vlad.size() << '\n';
  for (int i = 0; i < vlad.size(); ++i) {
    if (i) cout << " ";
    cout << vlad[i];
  }
  cout << '\n';
  return 0;
}