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:1000000000")
using namespace std;
const double pi = acos(-1.0);
const int size = 100 * 1000;
const int s_size = 3010;
const int inf = 1000 * 1000 * 1000;
int xc1[size], yc1[size], xc2[size], yc2[size];
int n;
int nums[s_size][s_size];
int cover[s_size][s_size];
int val1[s_size][s_size];
int val2[s_size][s_size];
int help[s_size][s_size];
bool used[size];
inline int getsum(int xd, int yd, int xu, int yu) {
  return cover[xu][yu] - cover[xd][yu] - cover[xu][yd] + cover[xd][yd];
}
void printsol(int x1, int y1, int x2, int y2) {
  for (int i = x1 + 1; i <= x2; i++)
    for (int j = y1 + 1; j <= y2; j++) used[nums[i][j]] = true;
  int cnt = 0;
  for (int i = 0; i < n; i++) cnt += used[i];
  printf("YES %d\n", cnt);
  for (int i = 0; i < n; i++)
    if (used[i]) printf("%d ", i + 1);
  printf("\n");
}
int main() {
  for (int i = 0; i < s_size; i++)
    for (int j = 0; j < s_size; j++) {
      nums[i][j] = -1;
      cover[i][j] = 0;
      val1[i][j] = inf;
      val2[i][j] = inf;
    }
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d%d%d%d", &xc1[i], &yc1[i], &xc2[i], &yc2[i]);
    for (int x = xc1[i] + 1; x <= xc2[i]; x++)
      for (int y = yc1[i] + 1; y <= yc2[i]; y++) {
        cover[x][y] = 1;
        nums[x][y] = i;
      }
  }
  for (int i = 0; i < s_size; i++)
    for (int j = 0; j < s_size; j++)
      if (nums[i][j] == -1) {
        val2[i][j] = 0;
        if (i > 0 && j > 0) val1[i - 1][j - 1] = 0;
      }
  for (int i = 1; i < s_size; i++)
    for (int j = 1; j < s_size; j++) {
      cover[i][j] =
          cover[i - 1][j] + cover[i][j - 1] - cover[i - 1][j - 1] + cover[i][j];
    }
  memset(help, 0, sizeof(int) * s_size * s_size);
  for (int i = 1; i < s_size; i++)
    for (int j = 1; j < s_size; j++) {
      help[i][j] = help[i - 1][j] + 1;
      while (getsum(i - help[i][j], j - help[i][j], i, j) <
             help[i][j] * help[i][j])
        help[i][j]--;
      val2[i][j] = min(val2[i][j], help[i][j]);
    }
  memset(help, 0, sizeof(int) * s_size * s_size);
  for (int i = 1; i < s_size; i++)
    for (int j = 1; j < s_size; j++) {
      if (nums[i][j] != -1 && nums[i][j] == nums[i + 1][j])
        help[i][j] = 0;
      else
        help[i][j] = help[i][j - 1] + 1;
      val2[i][j] = min(val2[i][j], help[i][j]);
    }
  memset(help, 0, sizeof(int) * s_size * s_size);
  for (int i = 1; i < s_size; i++)
    for (int j = 1; j < s_size; j++) {
      if (nums[i][j] != -1 && nums[i][j] == nums[i][j + 1])
        help[i][j] = 0;
      else
        help[i][j] = help[i - 1][j] + 1;
      val2[i][j] = min(val2[i][j], help[i][j]);
    }
  memset(help, 0, sizeof(int) * s_size * s_size);
  for (int i = s_size - 2; i >= 0; i--)
    for (int j = s_size - 2; j >= 0; j--) {
      help[i][j] = help[i][j + 1] + 1;
      while (getsum(i, j, i + help[i][j], j + help[i][j]) !=
             help[i][j] * help[i][j])
        help[i][j]--;
      val1[i][j] = min(val1[i][j], help[i][j]);
    }
  memset(help, 0, sizeof(int) * s_size * s_size);
  for (int i = s_size - 2; i >= 0; i--)
    for (int j = s_size - 2; j >= 0; j--) {
      if (nums[i][j + 1] != -1 && nums[i][j + 1] == nums[i + 1][j + 1])
        help[i][j] = 0;
      else
        help[i][j] = help[i][j + 1] + 1;
      val1[i][j] = min(val1[i][j], help[i][j]);
    }
  memset(help, 0, sizeof(int) * s_size * s_size);
  for (int i = s_size - 2; i >= 0; i--)
    for (int j = s_size - 2; j >= 0; j--) {
      if (nums[i + 1][j] != -1 && nums[i + 1][j] == nums[i + 1][j + 1])
        help[i][j] = 0;
      else
        help[i][j] = help[i + 1][j] + 1;
      val1[i][j] = min(val1[i][j], help[i][j]);
    }
  for (int i = -s_size + 1; i < s_size; i++) {
    int x = max(i, 0);
    int y = -min(i, 0);
    vector<int> st;
    for (int p = 0; x + p < s_size && y + p < s_size; p++) {
      while (!st.empty() && st.back() >= p - val2[x + p][y + p])
        if (val1[x + st.back()][y + st.back()] >= p - st.back()) {
          printsol(x + st.back(), y + st.back(), x + p, y + p);
          return 0;
        } else {
          st.pop_back();
        }
      st.push_back(p);
    }
  }
  printf("NO\n");
  return 0;
}