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;
const int kDimension = 3011;
int who[kDimension][kDimension];
int fil[kDimension][kDimension];
template <class T>
class Static2DArraySum {
 public:
  Static2DArraySum(T arr[][kDimension], int rows, int cols)
      : _rows(rows), _cols(cols) {
    _t = new T*[rows];
    for (int i = 0; i < rows; ++i) {
      _t[i] = new T[cols];
    }
    for (int i = 0; i < rows; ++i)
      for (int j = 0; j < cols; ++j) {
        _t[i][j] = arr[i][j];
        if (i) _t[i][j] += _t[i - 1][j];
        if (j) _t[i][j] += _t[i][j - 1];
        if (i && j) _t[i][j] -= _t[i - 1][j - 1];
      }
  }
  ~Static2DArraySum() {
    for (int i = 0; i < _rows; ++i) {
      delete[] _t[i];
    }
    delete[] _t;
  }
  T Sum(int minrow, int mincol, int maxrow, int maxcol) {
    T result = _t[maxrow][maxcol];
    if (minrow) result -= _t[minrow - 1][maxcol];
    if (mincol) result -= _t[maxrow][mincol - 1];
    if (minrow && mincol) result += _t[minrow - 1][mincol - 1];
    return result;
  }

 private:
  int _rows, _cols;
  T** _t;
};
int far[3010][3010][4];
int dr[] = {1, 0, -1, 0};
int dc[] = {0, 1, 0, -1};
int n;
int cr[][2] = {{0, 0}, {0, -1}, {-1, -1}, {-1, 0}};
int cc[][2] = {{-1, 0}, {0, 0}, {0, -1}, {-1, -1}};
int Get(int r, int c) {
  if (r < 0 || c < 0 || r >= n || c >= n) return 0;
  return who[r][c];
}
void DoIt(int r, int c, int d) {
  int nr = r + dr[d];
  int nc = c + dc[d];
  if (nr < 0 || nc < 0 || nr > n || nc > n) {
    far[r][c][d] = 0;
    return;
  }
  if (Get(r + cr[d][0], c + cc[d][0]) == Get(r + cr[d][1], c + cc[d][1])) {
    far[r][c][d] = 0;
    return;
  }
  far[r][c][d] = 1 + far[nr][nc][d];
}
int main() {
  cin >> n;
  for (int(z) = 0; (z) < (n); ++(z)) {
    int x1, y1, x2, y2;
    cin >> x1 >> y1 >> x2 >> y2;
    for (int i = x1; i < x2; ++i) {
      for (int j = y1; j < y2; ++j) {
        who[i][j] = z + 1;
        fil[i][j] = 1;
      }
    }
  }
  n = 3001;
  Static2DArraySum<int> arsum(fil, n, n);
  for (int r = 0; r <= n; ++r)
    for (int c = 0; c <= n; ++c) {
      for (int dir = 2; dir < 4; ++dir) {
        DoIt(r, c, dir);
      }
    }
  for (int r = n; r >= 0; --r)
    for (int c = n; c >= 0; --c) {
      for (int dir = 0; dir < 2; ++dir) {
        DoIt(r, c, dir);
      }
    }
  for (int c0 = 0; c0 <= 2 * n; ++c0) {
    stack<int> sh;
    for (int r = n; r >= 0; --r) {
      int c = c0 - (n - r);
      if (c < 0 || c > n || r < 0 || r > n) {
        continue;
      }
      while (!sh.empty()) {
        int tr = sh.top();
        int tc = c0 - (n - tr);
        if (min(far[tr][tc][2], far[tr][tc][3]) < tr - r) {
          sh.pop();
          continue;
        } else {
          break;
        }
      }
      if (!sh.empty()) {
        int tr = sh.top();
        int tc = c0 - (n - tr);
        int len = tr - r;
        if (min(far[r][c][0], far[r][c][1]) >= len &&
            arsum.Sum(r, c, tr - 1, tc - 1) == (tr - r) * (tc - c)) {
          assert(tr - r == tc - c);
          cout << "YES ";
          set<int> res;
          for (int i = r; i < tr; ++i) {
            for (int j = c; j < tc; ++j) {
              res.insert(who[i][j]);
            }
          }
          cout << ((int)res.size()) << endl;
          for (typeof((res).begin()) it = (res).begin(); it != (res).end();
               it++) {
            cout << *it << " ";
          }
          cout << endl;
          return 0;
        }
      }
      sh.push(r);
    }
  }
  cout << "NO" << endl;
}