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>
struct Complex {
  double x, y;
  Complex(double _x = 0.0, double _y = 0.0) : x(_x), y(_y) {}
};
Complex operator+(Complex a, Complex b) {
  return Complex(a.x + b.x, a.y + b.y);
}
Complex operator-(Complex a, Complex b) {
  return Complex(a.x - b.x, a.y - b.y);
}
Complex operator*(Complex a, Complex b) {
  return Complex(a.x * b.x - a.y * b.y, a.x * b.y + a.y * b.x);
}
using namespace std;
namespace POINT2 {
struct Point {
  double x, y;
  Point(double _x = 0.0, double _y = 0.0) : x(_x), y(_y) {}
};
Point operator+(Point a, Point b) { return Point(a.x + b.x, a.y + b.y); }
Point operator-(Point a, Point b) { return Point(a.x - b.x, a.y - b.y); }
Point operator*(Point a, Point b) { return a.x * b.x + a.y * b.y; }
double operator^(Point a, Point b) { return a.x * b.y - a.y * b.x; }
double dis2(Point a, Point b) {
  return (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y);
}
double dis(Point a, Point b) {
  return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
}
struct Line {
  Point a, dir;
  Line(Point _a = Point(), Point _d = Point()) : a(_a), dir(_d) {}
};
bool parallel(Line a, Line b) { return (a.dir ^ b.dir) < 1e-12; }
struct Circle {
  Point o;
  double r;
  Circle(Point O, double R) : o(O), r(R) {}
};
}  // namespace POINT2
int get(int s[3310][3310], int a, int b, int c, int d) {
  return s[c][d] + s[a - 1][b - 1] - s[a - 1][d] - s[c][b - 1];
}
void work() {
  static int sum[3310][3310], up[3310][3310], down[3310][3310],
      left[3310][3310], right[3310][3310];
  static int x1[33 * 3310], y1[33 * 3310], x2[33 * 3310], y2[33 * 3310];
  static int id[3310][3310];
  static bool flag[33 * 3310];
  int n;
  cin >> n;
  for (int i = 0; i < (n); i++) {
    cin >> x1[i];
    cin >> y1[i];
    cin >> x2[i];
    cin >> y2[i];
    x1[i]++;
    y1[i]++;
    for (int x = (x1[i]); x <= (x2[i]); x++)
      for (int y = (y1[i]); y <= (y2[i]); y++) {
        sum[x][y]++;
        id[x][y] = i + 1;
        if (x != x1[i]) left[x][y]++;
        if (x != x2[i]) right[x][y]++;
        if (y != y1[i]) down[x][y]++;
        if (y != y2[i]) up[x][y]++;
      }
  }
  for (int x = 1; x <= (3310 - 1); x++)
    for (int y = 1; y <= (3310 - 1); y++) {
      sum[x][y] -= sum[x - 1][y - 1] - sum[x - 1][y] - sum[x][y - 1];
      down[x][y] -= down[x - 1][y - 1] - down[x - 1][y] - down[x][y - 1];
      up[x][y] -= up[x - 1][y - 1] - up[x - 1][y] - up[x][y - 1];
      left[x][y] -= left[x - 1][y - 1] - left[x - 1][y] - left[x][y - 1];
      right[x][y] -= right[x - 1][y - 1] - right[x - 1][y] - right[x][y - 1];
    }
  for (int i = 0; i < (n); i++) {
    int l = max(x2[i] - x1[i] + 1, y2[i] - y1[i] + 1);
    while (true) {
      if (get(sum, x1[i], y1[i], x1[i] + l - 1, y1[i] + l - 1) != l * l) break;
      if (get(down, x1[i], y1[i], x1[i] + l - 1, y1[i])) break;
      if (get(left, x1[i], y1[i], x1[i], y1[i] + l - 1)) break;
      if (get(up, x1[i], y1[i] + l - 1, x1[i] + l - 1, y1[i] + l - 1) == 0 &&
          get(right, x1[i] + l - 1, y1[i], x1[i] + l - 1, y1[i] + l - 1) == 0) {
        cout << "YES" << endl;
        for (int x = (x1[i]); x < (x1[i] + l); x++)
          for (int y = (y1[i]); y < (y1[i] + l); y++) flag[id[x][y]] = true;
        int k = 0;
        for (int t = 1; t <= (n); t++)
          if (flag[t]) k++;
        cout << k << endl;
        for (int t = 1; t <= (n); t++)
          if (flag[t]) cout << t << " ";
        return;
      }
      l++;
    }
  }
  puts("NO\n");
}
int main() { work(); }