Problem: There is a strange peculiarity: if you connect the cities of Rostov, Taganrog and Shakhty, peculiarly, you get a triangle

«Unbelievable But True»

Students from many different parts of Russia and abroad come to Summer Informatics School. You marked the hometowns of the SIS participants on a map.

Now you decided to prepare an interesting infographic based on this map. The first thing you chose to do is to find three cities on this map, such that they form a triangle with area S.

Input

The first line of input contains two integers n and S (3 ≤ n ≤ 2000, 1 ≤ S ≤ 2 ⋅ 10^{18}) — the number of cities on the map and the area of the triangle to be found.

The next n lines contain descriptions of the cities, one per line. Each city is described by its integer coordinates x_i, y_i (-10^9 ≤ x_i, y_i ≤ 10^9). 

It is guaranteed that all cities are located at distinct points. It is also guaranteed that no three cities lie on the same line.

Output

If the solution doesn't exist — print «No».

Otherwise, print «Yes», followed by three pairs of coordinates (x, y) — the locations of the three cities, which form the triangle of area S.

Examples

Input

3 7
0 0
3 0
0 4


Output

No


Input

4 3
0 0
2 0
1 2
1 3


Output

Yes
0 0
1 3
2 0

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int maxn = 2100;
int n;
long long S;
pair<int, int> p[maxn];
int sa[maxn], rk[maxn];
struct Cline {
  int x, y, a, b;
};
vector<Cline> line;
long long calc(int a, int b, int c) {
  int x1 = p[b].first - p[a].first;
  int y1 = p[b].second - p[a].second;
  int x2 = p[c].first - p[a].first;
  int y2 = p[c].second - p[a].second;
  long long ret = abs(1ll * x1 * y2 - 1ll * x2 * y1);
  if (ret == S) {
    puts("Yes");
    printf("%d %d\n", p[a].first, p[a].second);
    printf("%d %d\n", p[b].first, p[b].second);
    printf("%d %d\n", p[c].first, p[c].second);
    exit(0);
  }
  return ret;
}
void check1(int a, int b, int l, int r) {
  while (l <= r) {
    int mid = (l + r) >> 1;
    if (calc(a, b, sa[mid]) < S)
      r = mid - 1;
    else
      l = mid + 1;
  }
}
void check2(int a, int b, int l, int r) {
  while (l <= r) {
    int mid = (l + r) >> 1;
    if (calc(a, b, sa[mid]) < S)
      l = mid + 1;
    else
      r = mid - 1;
  }
}
int main() {
  cin >> n >> S;
  S <<= 1;
  for (int i = (1); i <= (n); i++) scanf("%d%d", &p[i].first, &p[i].second);
  for (int i = (1); i <= (n); i++) sa[i] = i;
  sort(sa + 1, sa + n + 1, [](int a, int b) { return p[a] < p[b]; });
  for (int i = (1); i <= (n); i++) rk[sa[i]] = i;
  for (int i = (1); i <= (n); i++)
    for (int j = (i + 1); j <= (n); j++) {
      int x = p[j].first - p[i].first, y = p[j].second - p[i].second, a = i,
          b = j;
      if (x < 0 || (x == 0 && y < 0)) x = -x, y = -y, swap(a, b);
      line.push_back((Cline){x, y, a, b});
    }
  sort(line.begin(), line.end(), [](const Cline &a, const Cline &b) {
    return 1ll * a.x * b.y < 1ll * b.x * a.y;
  });
  for (auto l : line) {
    check1(l.a, l.b, 1, rk[l.a] - 1);
    check2(l.a, l.b, rk[l.b] + 1, n - 1);
    assert(rk[l.a] + 1 == rk[l.b]);
    swap(rk[l.a], rk[l.b]);
    sa[rk[l.a]] = l.a;
    sa[rk[l.b]] = l.b;
  }
  cout << "No" << endl;
}