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;
#pragma comment(linker, "/STACK:255000000")
bool firstout = 1;
template <class T>
T &minn(T &a, T b) {
  if (b < a) a = b;
  return a;
}
template <class T>
T &maxx(T &a, T b) {
  if (a < b) a = b;
  return a;
}
int &madd(int &a, int b) {
  a += b;
  if (a >= 1000000007) a -= 1000000007;
  return a;
}
int &msub(int &a, int b) {
  a -= b;
  if (a < 0) a += 1000000007;
  return a;
}
int &mmult(int &a, int b) { return a = (long long)a * b % 1000000007; }
int mdiv(long long a, long long b, long long m) {
  a = (a % m + m) % m;
  b = (b % m + m) % m;
  if (a % b == 0) return a / b;
  return (a + m * mdiv(-a, m, b)) / b;
}
int n, m, q;
int A[3012][3012], H[3012][3012], HH[3012][3012], V[3012][3012], VV[3012][3012];
int X[101234], Y[101234], XX[101234], YY[101234];
bool DD[3012][3012], DU[3012][3012], UD[3012][3012], UU[3012][3012];
int main() {
  int i, j, k;
  char c;
  int a, d;
  int ts;
  for (ts = 1; scanf("%"
                     "d",
                     &(n)) > 0;
       ++ts) {
    for (i = (0); i < (3012); ++i)
      for (j = (0); j < (3012); ++j)
        A[i][j] = H[i][j] = HH[i][j] = V[i][j] = VV[i][j] = DD[i][j] =
            DU[i][j] = UD[i][j] = UU[i][j] = 0;
    for (i = (0); i < (n); ++i)
      scanf(
          "%"
          "d",
          &(X[i])),
          scanf(
              "%"
              "d",
              &(Y[i])),
          scanf(
              "%"
              "d",
              &(XX[i])),
          scanf(
              "%"
              "d",
              &(YY[i]));
    for (k = (0); k < (n); ++k) {
      int x, y, xx, yy;
      x = X[k];
      y = Y[k];
      xx = XX[k];
      yy = YY[k];
      for (i = (x); i < (xx); ++i)
        for (j = (y); j < (yy); ++j) A[i + 1][j + 1] = 1;
      DD[x][y] = 1;
      UD[xx][y] = 1;
      DU[x][yy] = 1;
      UU[xx][yy] = 1;
      for (i = (x); i < (xx); ++i) H[i + 1][y] = 1, HH[i + 1][yy] = 1;
      for (j = (y); j < (yy); ++j) V[x][j + 1] = 1, VV[xx][j + 1] = 1;
    }
    for (i = (1); i < (3012); ++i)
      for (j = (1); j < (3012); ++j)
        A[i][j] += A[i - 1][j] + A[i][j - 1] - A[i - 1][j - 1];
    for (j = (0); j < (3012); ++j)
      for (i = (1); i < (3012); ++i)
        H[i][j] += H[i - 1][j], HH[i][j] += HH[i - 1][j];
    for (i = (0); i < (3012); ++i)
      for (j = (1); j < (3012); ++j)
        V[i][j] += V[i][j - 1], VV[i][j] += VV[i][j - 1];
    int ii, jj, l;
    for (i = (0); i < (3012); ++i) {
      for (j = (0); j < (3012); ++j)
        if (DD[i][j]) {
          for (jj = (j + 1); jj < (3012); ++jj)
            if (DU[i][jj]) {
              l = jj - j;
              ii = i + l;
              if (UD[ii][j] && UU[ii][jj] && V[i][jj] - V[i][j] == l &&
                  VV[ii][jj] - VV[ii][j] == l && H[ii][j] - H[i][j] == l &&
                  HH[ii][jj] - HH[i][jj] == l &&
                  A[ii][jj] - A[i][jj] - A[ii][j] + A[i][j] == ((l) * (l)))
                break;
            }
          if (jj < 3012) break;
        }
      if (j < 3012) break;
    }
    if (i == 3012)
      printf(
          "%"
          "s",
          ("NO")),
          printf("\n"), firstout = 1;
    else {
      printf((firstout) ? "%"
                          "s"
                        : " %"
                          "s",
             ("YES")),
          firstout = 0;
      int res = 0;
      for (k = (0); k < (n); ++k)
        if (i <= X[k] && j <= Y[k] && XX[k] <= ii && YY[k] <= jj) ++res;
      printf((firstout) ? "%"
                          "d"
                        : " %"
                          "d",
             (res)),
          firstout = 0;
      printf("\n"), firstout = 1;
      for (k = (0); k < (n); ++k)
        if (i <= X[k] && j <= Y[k] && XX[k] <= ii && YY[k] <= jj)
          printf((firstout) ? "%"
                              "d"
                            : " %"
                              "d",
                 (k + 1)),
              firstout = 0;
      printf("\n"), firstout = 1;
    }
  }
  return 0;
}