After some programming contest Roma decided to try himself in tourism. His home country Uzhlyandia is a Cartesian plane. He wants to walk along each of the Main Straight Lines in Uzhlyandia. It is known that each of these lines is a straight line parallel to one of the axes (i.e. it is described with the equation x = a or y = a, where a is integer called the coordinate of this line).

Roma lost his own map, so he should find out the coordinates of all lines at first. Uncle Anton agreed to help him, using the following rules: 

  * Initially Roma doesn't know the number of vertical and horizontal lines and their coordinates; 
  * Roma can announce integer coordinates of some point in Uzhlandia, and Anton then will tell him the minimum among the distances from the chosen point to each of the lines. However, since the coordinates of the lines don't exceed 108 by absolute value, Roma can't choose a point with coordinates exceeding 108 by absolute value. 



Uncle Anton is in a hurry to the UOI (Uzhlandian Olympiad in Informatics), so he can only answer no more than 3·105 questions.

The problem is that Roma doesn't know how to find out the coordinates of the lines. Write a program that plays Roma's role and finds the coordinates.

Input

There is no input initially. Your program should make queries to get information.

It is guaranteed that the number of horizontal and vertical lines is at least 1 and less than or equal to 104 for each type.

Interaction

To make a query, print a line "0 x y" (-108 ≤ x, y ≤ 108), where x and y are the coordinates of the point. After each query you need to print end-of-line, make "flush" operation, and then read the answer to the query — the minimum among the distances prom this point to the Main Straight Lines of Uzhlyandia.

You can do no more than 3·105 queries.

When you are ready to print the answer, print three lines:

  1. In the first line print "1 n m", where n is the number of vertical lines (parallel to OY), and m is the number of horizontal lines (parallel to OX). 
  2. In the second line print n integers x1, x2, ..., xn — the coordinates of the vertical lines. 
  3. In the third line in the same format print m integers y1, y2, ..., ym — the coordinates of the horizontal lines. 



You can print coordinates in arbitrary order.

To make "flush", you can use (just after printing a query/answer and end-of-line):

  * fflush(stdout) in C++; 
  * System.out.flush() in Java; 
  * stdout.flush() in Python; 
  * flush(output) in Pascal; 
  * see the documentation for other languages. 



You will get Wrong Answer if you make more queries than allowed or make an invalid query. 

You can get Idleness Limit Exceeded if you don't print anything or if you forget to flush the output.

If at any moment your program reads -1 as an answer, it should immediately exit normally (for example, by calling exit(0)). You will get Wrong Answer in this case, it means that you made more queries than allowed, or made an invalid query. If you ignore this, you can get other verdicts since your program will continue to read from a closed stream.

Making test for hacking

The first line should contain two integers n and m (1 ≤ n, m ≤ 104).

The second line should contain n distinct integers xi (-108 ≤ xi ≤ 108) — the coordinates of the vertical lines.

The third line should contain m distinct integers yi (-108 ≤ yi ≤ 108) — the coordinates of the horizontal lines.

You can write coordinates in arbitrary order.

You can see the example case in the notes.

Example

Input

1
1
3
2


Output

0 1 2
0 -2 -2
0 5 6
0 -2 2
1 1 2
2
0 -3

Note

The example test is 
    
    
      
    1 2  
    2  
    0 -3  
    

The minimum distances are:

  * from (1, 2) to x = 2; 
  * from ( - 2, - 2) to y = - 3; 
  * from (5, 6) to x = 2; 
  * from ( - 2, 2) to y = 0. 
#include <bits/stdc++.h>
using namespace std;
template <typename T>
void _R(T &x) {
  cin >> x;
}
void _R(int &x) { scanf("%d", &x); }
void _R(long long &x) { scanf("%" PRId64, &x); }
void _R(double &x) { scanf("%lf", &x); }
void _R(char &x) { scanf(" %c", &x); }
void _R(char *x) { scanf("%s", x); }
void R() {}
template <typename T, typename... U>
void R(T &head, U &...tail) {
  _R(head);
  R(tail...);
}
template <typename T>
void _W(const T &x) {
  cout << x;
}
void _W(const int &x) { printf("%d", x); }
void _W(const long long &x) { printf("%" PRId64, x); }
template <typename T>
void _W(const vector<T> &x) {
  for (auto i = x.cbegin(); i != x.cend(); i++) {
    if (i != x.cbegin()) putchar(' ');
    _W(*i);
  }
}
void W() {}
template <typename T, typename... U>
void W(const T &head, const U &...tail) {
  _W(head);
  putchar(sizeof...(tail) ? ' ' : '\n');
  W(tail...);
}
struct SplitMix32 {
  uint32_t s;
  SplitMix32(uint32_t _s = 0) : s(_s) {}
  uint32_t operator()() {
    uint32_t z = (s += 0x9e3779b1);
    z = (z ^ (z >> 16)) * 0x85ebca6b;
    z = (z ^ (z >> 13)) * 0xc2b2ae35;
    return z ^ (z >> 16);
  }
  int i(int l, int r) {
    auto x = (*this)();
    return l + x % (r - l + 1);
  }
} rng;
const int L = 1e8;
const int INF = 1e9;
struct NPC {
  vector<int> vx, vy;
  void init(int n, int m) {
    vx.clear();
    vy.clear();
    for (int i = 0; i < int(n); i++) vx.push_back(rng.i(-L, +L));
    for (int i = 0; i < int(m); i++) vy.push_back(rng.i(-L, +L));
    sort(begin(vx), end(vx));
    sort(begin(vy), end(vy));
  }
  static int ask(const vector<int> &v, int x) {
    int mi = INF;
    auto it = lower_bound(begin(v), end(v), x);
    if (it != v.end()) mi = min(mi, *it - x);
    if (it != v.begin()) {
      it--;
      mi = min(mi, x - *it);
    }
    assert(mi != INF);
    return mi;
  }
  int ask(int x, int y) {
    int mi = INF;
    mi = min(mi, ask(vx, x));
    mi = min(mi, ask(vy, y));
    return mi;
  }
} npc;
int ask_cnt;
int ask(int x, int y) {
  ask_cnt++;
  printf("0 %d %d\n", x, y);
  fflush(stdout);
  int res;
  scanf("%d", &res);
  if (res == -1) exit(0);
  return res;
}
struct Range {
  int l, r;
  int mid() { return l + (r - l) / 2; }
  int len() const { return r - l + 1; }
  bool operator<(const Range &rhs) const { return len() < rhs.len(); }
};
template <typename F>
vector<int> solve(F f) {
  vector<int> v;
  priority_queue<Range> q;
  q.push({-L, +L});
  while (!q.empty()) {
    auto t = q.top();
    q.pop();
    int m = t.mid();
    int d = f(m);
    if (d == 0) {
      v.push_back(m);
      d++;
    }
    int l1 = t.l;
    int r1 = m - d;
    int l2 = m + d;
    int r2 = t.r;
    if (l1 <= r1) q.push({l1, r1});
    if (l2 <= r2) q.push({l2, r2});
  }
  return v;
}
int main() {
  npc.init(10000, 10000);
  int mx = -1, ox = 0, oy = 0;
  for (int i = 0; i < int(2000); i++) {
    int x = rng.i(-L, +L);
    int y = rng.i(-L, +L);
    int now = ask(x, y);
    if (now > mx) tie(mx, ox, oy) = tie(now, x, y);
  }
  assert(mx > 0);
  ;
  auto vx = solve([&](int m) { return ask(m, oy); });
  auto vy = solve([&](int m) { return ask(ox, m); });
  sort(begin(vx), end(vx));
  sort(begin(vy), end(vy));
  W(1, ((int)(vx).size()), ((int)(vy).size()));
  W(vx);
  W(vy);
  return 0;
}
