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 <typename T, typename TT>
ostream &operator<<(ostream &s, pair<T, TT> t) {
  return s << "(" << t.first << "," << t.second << ")";
}
template <typename T>
ostream &operator<<(ostream &s, vector<T> t) {
  s << "{";
  for (int i = 0; i < t.size(); i++)
    s << t[i] << (i == t.size() - 1 ? "" : ",");
  return s << "}" << endl;
}
inline void pisz(int x) { printf("%d\n", x); }
int zaj[3004][3004];
int gora[3004][3004];
int prawo[3004][3004];
pair<int, int> A[100001], B[100001];
int n;
void wypisz(int ax, int ay, int bx, int by) {
  vector<int> v;
  for (int i = 0; i < n; i++) {
    if (ax <= A[i].first && ay <= A[i].second && B[i].first <= bx &&
        B[i].second <= by)
      v.push_back(i);
  }
  printf("YES %d\n", v.size());
  for (int i = 0; i < v.size(); i++) printf("%d ", v[i] + 1);
}
int sumuj(int ax, int ay, int bx, int by) {
  return zaj[bx][by] - zaj[ax][by] - zaj[bx][ay] + zaj[ax][ay];
}
vector<int> diag[3004 + 3004 + 3004];
int main() {
  ios_base::sync_with_stdio(0);
  scanf("%d", &(n));
  ;
  for (int i = 0; i < 3004; i++)
    for (int j = 0; j < 3004; j++) gora[i][j] = j;
  for (int i = 0; i < 3004; i++)
    for (int j = 0; j < 3004; j++) prawo[i][j] = i;
  for (int i = 0; i < n; i++) {
    int ax, ay, bx, by;
    scanf("%d%d", &(ax), &(ay));
    ;
    scanf("%d%d", &(bx), &(by));
    ;
    A[i] = make_pair(ax, ay);
    B[i] = make_pair(bx, by);
    for (int y = by; y >= ay; y--) {
      (gora[ax][y]) = max((gora[ax][y]), (by));
      (gora[bx][y]) = max((gora[bx][y]), (by));
    }
    for (int x = bx; x >= ax; x--) {
      (prawo[x][ay]) = max((prawo[x][ay]), (bx));
      (prawo[x][by]) = max((prawo[x][by]), (bx));
    }
    diag[3004 + ax - ay].push_back(ax);
    diag[3004 + bx - by].push_back(bx);
    for (int x = ax + 1; x <= bx; x++)
      for (int y = ay + 1; y <= by; y++) zaj[x][y] = 1;
  }
  for (int x = 0; x < 3004; x++)
    for (int y = 3004 - 2; y >= 0; y--)
      if (gora[x][y] > y) gora[x][y] = gora[x][y + 1];
  for (int y = 0; y < 3004; y++)
    for (int x = 3004 - 2; x >= 0; x--)
      if (prawo[x][y] > x) prawo[x][y] = prawo[x + 1][y];
  for (int x = 1; x <= 3004 - 1; x++)
    for (int y = 1; y <= 3004 - 1; y++)
      zaj[x][y] = zaj[x][y] + zaj[x - 1][y] + zaj[x][y - 1] - zaj[x - 1][y - 1];
  for (int i = 0; i < 3 * 3004; i++) {
    vector<int> d = diag[i];
    sort((d).begin(), (d).end());
    d.erase(unique((d).begin(), (d).end()), d.end());
    for (int j = 0; j < d.size(); j++) {
      int j1 = j + 1;
      while (j1 < d.size()) {
        int ax = d[j], bx = d[j1];
        int ay = -(i - 3004 - ax), by = -(i - 3004 - bx);
        if (prawo[ax][ay] < bx) break;
        if (gora[ax][ay] < by) break;
        if (sumuj(ax, ay, bx, by) != (bx - ax) * (bx - ax)) break;
        if (prawo[ax][by] >= bx && gora[bx][ay] >= by) {
          wypisz(ax, ay, bx, by);
          return 0;
        }
        j1++;
      }
    }
  }
  puts("NO");
  return 0;
}