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;
int N, tX[100005], tY[100005], bX[100005], bY[100005];
int tCorner[3001 + 5][3001 + 5];
int cum[3001 + 5][3001 + 5];
bool vertB[3001 + 5][3001 + 5], horiB[3001 + 5][3001 + 5];
int grCoun, actCoun, horiG[3001 + 5][3001 + 5], vertG[3001 + 5][3001 + 5];
int horiAct[100005], vertAct[100005];
vector<int> hAll[100005 + 5], vAll[100005 + 5];
bool hasRect, isHori;
vector<int> ans;
int rArea(int _y1, int _x1, int _y2, int _x2) {
  return cum[_y2][_x2] - cum[_y1][_x2] - cum[_y2][_x1] + cum[_y1][_x1];
}
int main() {
  scanf("%d", &N);
  memset(tCorner, -1, sizeof(tCorner));
  for (int(i) = (0); (i) < (N); ++(i)) {
    scanf("%d %d %d %d", &tX[i], &tY[i], &bX[i], &bY[i]);
    tCorner[tY[i]][tX[i]] = i;
  }
  for (int(i) = (0); (i) < (N); ++(i)) {
    for (int(p) = (tY[i] + 1); (p) < (bY[i] + 1); ++(p)) {
      for (int(t) = (tX[i] + 1); (t) < (bX[i] + 1); ++(t)) {
        cum[p][t]++;
      }
    }
  }
  for (int(i) = (1); (i) < (3001); ++(i))
    for (int(p) = (1); (p) < (3001); ++(p))
      cum[i][p] += (cum[i - 1][p] + cum[i][p - 1] - cum[i - 1][p - 1]);
  for (int(i) = (0); (i) < (N); ++(i)) {
    for (int(j) = (tX[i] + 1); (j) < (bX[i]); ++(j)) {
      for (int(k) = (tY[i] + 1); (k) < (bY[i] + 1); ++(k)) {
        vertB[k][j] = true;
      }
    }
    for (int(j) = (tY[i] + 1); (j) < (bY[i]); ++(j)) {
      for (int(k) = (tX[i] + 1); (k) < (bX[i] + 1); ++(k)) {
        horiB[j][k] = true;
      }
    }
  }
  for (int(i) = (0); (i) < (3001); ++(i)) {
    grCoun++;
    hasRect = false;
    for (int(p) = (0); (p) < (3001); ++(p)) {
      if (horiB[i][p]) {
        grCoun++;
        hasRect = false;
      }
      horiG[i][p] = grCoun;
      if (tCorner[i][p] != -1) {
        if (!hasRect) actCoun++;
        hAll[actCoun].push_back(tCorner[i][p]);
        horiAct[tCorner[i][p]] = actCoun;
        hasRect = true;
      }
    }
  }
  grCoun = actCoun = 0;
  for (int(p) = (0); (p) < (3001); ++(p)) {
    grCoun++;
    hasRect = false;
    for (int(i) = (0); (i) < (3001); ++(i)) {
      if (vertB[i][p]) {
        grCoun++;
        hasRect = false;
      }
      vertG[i][p] = grCoun;
      if (tCorner[i][p] != -1) {
        if (!hasRect) actCoun++;
        vAll[actCoun].push_back(tCorner[i][p]);
        vertAct[tCorner[i][p]] = actCoun;
        hasRect = true;
      }
    }
  }
  for (int(i) = (0); (i) < (N); ++(i)) {
    vector<int> &sV = (hAll[horiAct[i]].size() < vAll[vertAct[i]].size())
                          ? hAll[horiAct[i]]
                          : vAll[vertAct[i]];
    isHori = (hAll[horiAct[i]].size() < vAll[vertAct[i]].size());
    for (int(p) = (0); (p) < (sV.size()); ++(p)) {
      int cR = sV[p];
      int cD = tX[cR] - tX[i] + tY[cR] - tY[i];
      if (cD < 0) continue;
      if (isHori)
        cD = bX[cR] - tX[i];
      else
        cD = bY[cR] - tY[i];
      do {
        if (cD + tY[i] >= 3001 || cD + tX[i] >= 3001) break;
        if (horiG[tY[i]][tX[i]] != horiG[tY[i]][tX[i] + cD]) break;
        if (vertG[tY[i]][tX[i]] != vertG[tY[i] + cD][tX[i]]) break;
        if (horiG[tY[i] + cD][tX[i]] != horiG[tY[i] + cD][tX[i] + cD]) break;
        if (vertG[tY[i]][tX[i] + cD] != vertG[tY[i] + cD][tX[i] + cD]) break;
        if (rArea(tY[i], tX[i], tY[i] + cD, tX[i] + cD) == cD * cD) {
          for (int(t) = (0); (t) < (N); ++(t)) {
            if (tY[t] >= tY[i] && tX[t] >= tX[i]) {
              if (bY[t] <= tY[i] + cD && bX[t] <= tX[i] + cD) ans.push_back(t);
            }
          }
          printf("YES %d\n", ans.size());
          for (int(t) = (0); (t) < (ans.size()); ++(t))
            printf("%d ", ans[t] + 1);
          return 0;
        }
      } while (false);
    }
  }
  printf("NO\n");
  return 0;
}