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>
const long long INFLL = 1e18;
using namespace std;
const int MAXN = 100000;
const int MAXK = 3000 + 5;
struct rect {
  int x1, y1, x2, y2, index;
} a[MAXN + 1];
int sum[MAXK + 1][MAXK + 1], boundX[MAXK + 1][MAXK + 1][2],
    boundY[MAXK + 1][MAXK + 1][2];
bool onEnd[MAXK + 1][MAXK + 1][4];
vector<pair<int, int> > g[MAXK + 1];
int getSumOnRect(int x1, int y1, int x2, int y2) {
  int s = sum[x2][y2];
  if (x1 > 0) {
    s -= sum[x1 - 1][y2];
  }
  if (y1 > 0) {
    s -= sum[x2][y1 - 1];
  }
  if (x1 > 0 && y1 > 0) {
    s += sum[x1 - 1][y1 - 1];
  }
  return s;
}
bool checkRect(int x1, int y1, int x2, int y2) {
  --x2;
  --y2;
  if (x2 < 0 || y2 < 0) {
    return false;
  }
  if (y2 > MAXK) {
    return false;
  }
  if (!onEnd[x1][y1][0] || !onEnd[x2][y1][1] || !onEnd[x2][y2][2] ||
      !onEnd[x1][y2][3]) {
    return false;
  }
  if (boundX[y1][x2][0] - (x1 - 1 >= 0 ? boundX[y1][x1 - 1][0] : 0) !=
      x2 - x1 + 1) {
    return false;
  }
  if (boundX[y2][x2][1] - (x1 - 1 >= 0 ? boundX[y2][x1 - 1][1] : 0) !=
      x2 - x1 + 1) {
    return false;
  }
  if (boundY[x1][y2][0] - (y1 - 1 >= 0 ? boundY[x1][y1 - 1][0] : 0) !=
      y2 - y1 + 1) {
    return false;
  }
  if (boundY[x2][y2][1] - (y1 - 1 >= 0 ? boundY[x2][y1 - 1][1] : 0) !=
      y2 - y1 + 1) {
    return false;
  }
  return getSumOnRect(x1, y1, x2, y2) == (x2 - x1 + 1) * (y2 - y1 + 1);
}
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d%d%d%d", &a[i].x1, &a[i].y1, &a[i].x2, &a[i].y2);
    a[i].index = i;
    for (int j = a[i].x1; j < a[i].x2; j++) {
      for (int k = a[i].y1; k < a[i].y2; k++) {
        ++sum[j][k];
      }
    }
    for (int j = a[i].x1; j < a[i].x2; j++) {
      ++boundX[a[i].y1][j][0];
      ++boundX[a[i].y2 - 1][j][1];
    }
    for (int j = a[i].y1; j < a[i].y2; j++) {
      ++boundY[a[i].x1][j][0];
      ++boundY[a[i].x2 - 1][j][1];
    }
    onEnd[a[i].x1][a[i].y1][0] = true;
    onEnd[a[i].x2 - 1][a[i].y1][1] = true;
    onEnd[a[i].x2 - 1][a[i].y2 - 1][2] = true;
    onEnd[a[i].x1][a[i].y2 - 1][3] = true;
  }
  for (int i = 0; i <= MAXK; i++) {
    for (int j = 0; j <= MAXK; j++) {
      if (j > 0) {
        boundX[i][j][0] += boundX[i][j - 1][0];
        boundX[i][j][1] += boundX[i][j - 1][1];
        boundY[i][j][0] += boundY[i][j - 1][0];
        boundY[i][j][1] += boundY[i][j - 1][1];
      }
      if (i > 0) {
        sum[i][j] += sum[i - 1][j];
      }
      if (j > 0) {
        sum[i][j] += sum[i][j - 1];
      }
      if (i > 0 && j > 0) {
        sum[i][j] -= sum[i - 1][j - 1];
      }
    }
  }
  for (int i = 0; i < n; i++) {
    g[a[i].y1].push_back({a[i].x1, a[i].x2});
  }
  int X1 = -1, Y1 = -1, X2 = -1, Y2 = -1;
  for (int i = 0; i <= MAXK; i++) {
    sort(g[i].begin(), g[i].end());
    for (int l = 0; l < (int)g[i].size(); l++) {
      for (int r = l; r < (int)g[i].size(); r++) {
        if (r > l && g[i][r - 1].second != g[i][r].first) {
          break;
        }
        int len = g[i][r].second - g[i][l].first;
        if (checkRect(g[i][l].first, i, g[i][r].second, i + len)) {
          X1 = g[i][l].first;
          Y1 = i;
          X2 = g[i][r].second;
          Y2 = i + len;
        }
      }
    }
  }
  if (X1 != -1) {
    vector<int> vec;
    for (int i = 0; i < n; i++) {
      if (X1 <= a[i].x1 && Y1 <= a[i].y1 && a[i].x2 <= X2 && a[i].y2 <= Y2) {
        vec.push_back(i);
      }
    }
    printf("YES %d\n", (int)vec.size());
    for (auto x : vec) {
      printf("%d ", x + 1);
    }
  } else {
    printf("NO\n");
  }
  return 0;
}