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:16777216")
using namespace std;
int d[3005][3005];
bool Left[3005][3005], Right[3005][3005], up[3005][3005], down[3005][3005],
    open[3005][3005], close[3005][3005];
short f[3005][3005][4];
pair<int, int> T[3005];
int n;
struct rectangle {
  int x1, y1, x2, y2;
  rectangle() {}
  rectangle(int x1, int y1, int x2, int y2) : x1(x1), x2(x2), y1(y1), y2(y2) {}
} rect[100005];
void init() {
  for (int i = (1), _b = (3000); i <= _b; i++)
    for (int j = (1), _b = (3000); j <= _b; j++)
      d[i][j] += d[i - 1][j] + d[i][j - 1] - d[i - 1][j - 1];
  for (int x = (1), _b = (3000); x <= _b; x++) {
    int cnt = 0;
    for (int y = (1), _b = (3000); y <= _b; y++) {
      if (Right[x][y])
        cnt++;
      else
        cnt = 0;
      f[x][y][1] = cnt;
    }
    cnt = 0;
    for (int y = (3000), _b = (1); y >= _b; y--) {
      if (Left[x][y])
        cnt++;
      else
        cnt = 0;
      f[x][y][3] = cnt;
    }
  }
  for (int y = (1), _b = (3000); y <= _b; y++) {
    int cnt = 0;
    for (int x = (1), _b = (3000); x <= _b; x++) {
      if (down[x][y])
        cnt++;
      else
        cnt = 0;
      f[x][y][0] = cnt;
    }
    for (int x = (3000), _b = (1); x >= _b; x--) {
      if (up[x][y])
        cnt++;
      else
        cnt = 0;
      f[x][y][2] = cnt;
    }
  }
}
int sum(int x, int y, int m) {
  return d[x][y] - d[x - m][y] - d[x][y - m] + d[x - m][y - m];
}
int find(int x, int y) {
  int l = 1, r = min(x, y), res = 0;
  while (l <= r) {
    int m = (l + r) / 2;
    if (sum(x, y, m) == m * m) {
      res = m;
      l = m + 1;
    } else
      r = m - 1;
  }
  return res;
}
void update(int i, int x) {
  pair<int, int> res = make_pair(x, i);
  while (i > 0) {
    T[i] = max(T[i], res);
    i -= i & (-i);
  }
}
pair<int, int> get(int i) {
  pair<int, int> res = make_pair(0, 0);
  while (i <= 3000) {
    res = max(res, T[i]);
    i += i & (-i);
  }
  return res;
}
void print(int x1, int y1, int x2, int y2) {
  x1--, y1--;
  vector<int> res;
  for (int nn = (1), _b = (n); nn <= _b; nn++) {
    rectangle r = rect[nn];
    if (r.x1 >= x1 && r.y1 >= y1 && r.x2 <= x2 && r.y2 <= y2) res.push_back(nn);
  }
  cout << "YES " << res.size() << endl;
  for (int i = 0, _n = (res.size()); i < _n; i++) cout << res[i] << ' ';
  exit(0);
}
void solve() {
  for (int x_y = (1 - 3000), _b = (3000 - 1); x_y <= _b; x_y++) {
    memset(T, 0, sizeof(T));
    for (int x = (max(1, x_y + 1)), _b = (min(3000, x_y + 3000)); x <= _b;
         x++) {
      int y = x - x_y;
      if (open[x][y]) {
        int k = min(f[x][y][2], f[x][y][3]);
        update(x, x + k - 1);
      }
      if (close[x][y]) {
        int k = min(f[x][y][0], f[x][y][1]);
        k = min(k, find(x, y));
        pair<int, int> s = get(x - k + 1);
        if (s.first >= x) {
          print(s.second, s.second - x_y, x, y);
        }
      }
    }
  }
  puts("NO");
}
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  for (int nn = (1), _b = (n); nn <= _b; nn++) {
    int x1, y1, x2, y2;
    cin >> x1 >> y1 >> x2 >> y2;
    rect[nn] = rectangle(x1, y1, x2, y2);
    x1++;
    y1++;
    for (int i = (x1), _b = (x2); i <= _b; i++)
      for (int j = (y1), _b = (y2); j <= _b; j++) d[i][j] = 1;
    open[x1][y1] = true;
    close[x2][y2] = true;
    for (int i = (x1), _b = (x2); i <= _b; i++) {
      up[i][y1] = true;
      down[i][y2] = true;
    }
    for (int i = (y1), _b = (y2); i <= _b; i++) {
      Left[x1][i] = true;
      Right[x2][i] = true;
    }
  }
  init();
  solve();
  return 0;
}