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;
const int MX = 3005;
const int MN = 1e5 + 5, GS = MX + 7;
int N, tb[MN], bb[MN], lb[MN], rb[MN];
int _grid[GS][GS]{}, _blank[GS][GS]{}, _tedge[GS][GS]{}, _bedge[GS][GS]{},
    _ledge[GS][GS]{}, _redge[GS][GS]{};
int (*grid)[GS] = _grid + 5, (*tedge)[GS] = _tedge + 5,
    (*bedge)[GS] = _bedge + 5, (*ledge)[GS] = _ledge + 5,
    (*redge)[GS] = _redge + 5, (*blank)[GS] = _blank + 5;
int sum(int (*ar)[GS], int x1, int y1, int x2, int y2) {
  return ar[y2][x2] - ar[y1 - 1][x2] - ar[y2][x1 - 1] + ar[y1 - 1][x1 - 1];
}
bool square(int x, int y, int s) {
  return sum(bedge, x, y, x + s, y) == s + 1 &&
         sum(tedge, x, y + s, x + s, y + s) == s + 1 &&
         sum(ledge, x, y, x, y + s) == s + 1 &&
         sum(redge, x + s, y, x + s, y + s) == s + 1 &&
         sum(blank, x, y, x + s, y + s) == 0;
}
set<int> uni;
void end(int x, int y, int s) {
  for (int y1 = y; y1 <= y + s; y1++) {
    for (int x1 = x; x1 <= x + s; x1++) {
      uni.insert(grid[y1][x1]);
    }
  }
  printf("YES %d\n", uni.size());
  int i = 0;
  for (auto idx : uni) {
    printf("%d%c", idx, i == uni.size() - 1 ? '\n' : ' ');
    i++;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> N;
  for (int i = 1, x1, y1, x2, y2; i <= N; i++) {
    cin >> x1 >> y1 >> x2 >> y2;
    rb[i] = x2 - 1;
    tb[i] = y2 - 1;
    lb[i] = x1;
    bb[i] = y1;
    for (int y = y1; y < y2; y++) {
      for (int x = x1; x < x2; x++) {
        grid[y][x] = i;
      }
    }
    for (int y = y1; y < y2; y++) {
      ledge[y][x1] = 1;
      redge[y][x2 - 1] = 1;
    }
    for (int x = x1; x < x2; x++) {
      bedge[y1][x] = 1;
      tedge[y2 - 1][x] = 1;
    }
  }
  for (int y = 0; y < MX; y++) {
    for (int x = 0; x < MX; x++) {
      tedge[y][x] += tedge[y][x - 1] + tedge[y - 1][x] - tedge[y - 1][x - 1];
      bedge[y][x] += bedge[y][x - 1] + bedge[y - 1][x] - bedge[y - 1][x - 1];
      ledge[y][x] += ledge[y][x - 1] + ledge[y - 1][x] - ledge[y - 1][x - 1];
      redge[y][x] += redge[y][x - 1] + redge[y - 1][x] - redge[y - 1][x - 1];
      blank[y][x] +=
          !grid[y][x] + blank[y][x - 1] + blank[y - 1][x] - blank[y - 1][x - 1];
    }
  }
  for (int i = 1; i <= N; i++) {
    int bx = lb[i], by = bb[i], s = 0, t = 0, r = 0;
    while (max(bx, by) + s < MX) {
      if (sum(blank, bx, by, bx + s, by + s) > 0) break;
      int tidx = grid[by + s][bx], ridx = grid[by][bx + s];
      r = rb[ridx] - bx;
      t = tb[tidx] - by;
      if (r != t) {
        s = r = t = max(r, t);
      } else {
        s = r;
        if (square(bx, by, s)) {
          end(bx, by, s);
          return 0;
        }
        s++;
      }
    }
  }
  printf("NO\n");
  return 0;
}