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;
void re(int& x);
void re(long long& x);
template <class T, class... Ts>
void re(T& t, Ts&... ts);
void pr(int x);
void pr(const char* x);
void ps();
template <class T, class... Ts>
void ps(const T& t, const Ts&... ts);
int n;
long long S;
struct point {
  int x, y;
};
point p[2100];
int curp[2100];
vector<pair<double, pair<int, int> > > lines;
long long area(int p1, int p2, int p3) {
  return abs(p[p1].x * 1ll * p[p2].y + p[p2].x * 1ll * p[p3].y +
             p[p3].x * 1ll * p[p1].y - p[p1].x * 1ll * p[p3].y -
             p[p2].x * 1ll * p[p1].y - p[p3].x * 1ll * p[p2].y);
}
bool checkd(int p1, int p2, int l, int r) {
  if (l > r) return false;
  while (l < r) {
    int m = (l + r) / 2;
    if (area(p1, p2, m) <= S)
      r = m;
    else
      l = m + 1;
  }
  if (area(p1, p2, l) == S) {
    ps("Yes");
    ps(p[p1].x, p[p1].y);
    ps(p[p2].x, p[p2].y);
    ps(p[l].x, p[l].y);
    return true;
  }
  return false;
}
bool checki(int p1, int p2, int l, int r) {
  if (l > r) return false;
  while (l < r) {
    int m = (l + r + 1) / 2;
    if (area(p1, p2, m) <= S)
      l = m;
    else
      r = m - 1;
  }
  if (area(p1, p2, l) == S) {
    ps("Yes");
    ps(p[p1].x, p[p1].y);
    ps(p[p2].x, p[p2].y);
    ps(p[l].x, p[l].y);
    return true;
  }
  return false;
}
void solve() {
  re(n, S);
  S <<= 1;
  for (int i = 0; i < (n); ++i) {
    re(p[i].x, p[i].y);
  }
  sort(p, p + n, [](const point& a, const point& b) {
    return pair<int, int>(a.y, a.x) < pair<int, int>(b.y, b.x);
  });
  for (int i = 0; i < (n); ++i) curp[i] = i;
  for (int i = 0; i < (n); ++i) {
    for (int j = i + 1; j < (n); ++j) {
      int dy = p[i].y - p[j].y;
      int dx = p[i].x - p[j].x;
      lines.push_back({atan2(dy, dx), {i, j}});
    }
  }
  sort((lines).begin(), (lines).end());
  for (auto& line : lines) {
    int idx1 = line.second.first;
    int idx2 = line.second.second;
    int t1 = curp[idx1], t2 = curp[idx2];
    if (t1 > t2) swap(t1, t2);
    if (checkd(t1, t2, 0, t1 - 1)) return;
    if (checki(t1, t2, t2 + 1, n - 1)) return;
    swap(p[t1], p[t2]);
    swap(curp[idx1], curp[idx2]);
  }
  ps("No");
}
int main() { solve(); }
void re(int& x) { scanf("%d", &x); }
void re(long long& x) { scanf("%lld", &x); }
template <class T, class... Ts>
void re(T& t, Ts&... ts) {
  re(t);
  re(ts...);
}
void pr(int x) { printf("%d", x); }
void pr(const char* x) { printf("%s", x); }
void ps() { pr("\n"); }
template <class T, class... Ts>
void ps(const T& t, const Ts&... ts) {
  pr(t);
  if (sizeof...(ts)) pr(" ");
  ps(ts...);
}