Problem: 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. 

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int G = 4000, N = 1e8;
vector<int> A, B;
map<int, int> M;
int query(int x, int y) {
  printf("%d %d %d\n", 0, x, y);
  fflush(stdout);
  int k;
  scanf("%d", &k);
  return k;
}
int n, m;
int getran() { return (rand() << 15) + rand(); }
int getrand() { return abs(getran()) % (N * 2 + 1) - N; }
void queryx(int x, int l, int r) {
  if (l >= r - 1) return;
  int mid = (l + r) / 2;
  int w = query(x, mid);
  if (mid - w == l && mid + w == r) return;
  if (mid - w == l) {
    if (query(x, mid + w) == 0) A.push_back(mid + w);
    return;
  }
  if (mid + w == r) {
    if (query(x, mid - w) == 0) A.push_back(mid - w);
    return;
  }
  if (query(x, mid - w) == 0) {
    A.push_back(mid - w);
    queryx(x, l, mid - w);
    queryx(x, mid - w, r);
  } else {
    A.push_back(mid + w);
    queryx(x, l, mid + w);
    queryx(x, mid + w, r);
  }
}
void queryy(int y, int l, int r) {
  if (l >= r - 1) return;
  int mid = (l + r) / 2;
  int w = query(mid, y);
  if (mid - w == l && mid + w == r) return;
  if (mid - w == l) {
    if (query(mid + w, y) == 0) B.push_back(mid + w);
    return;
  }
  if (mid + w == r) {
    if (query(mid - w, y) == 0) B.push_back(mid - w);
    return;
  }
  if (query(mid - w, y) == 0) {
    B.push_back(mid - w);
    queryy(y, l, mid - w);
    queryy(y, mid - w, r);
  } else {
    B.push_back(mid + w);
    queryy(y, l, mid + w);
    queryy(y, mid + w, r);
  }
}
void queryx() {
  int x, y, D;
  while (1) {
    x = getrand();
    y = getrand();
    D = query(x, y);
    if (D > G) break;
  }
  D--;
  int nowx = x, nowy = y;
  while (nowy != N) {
    int a = x, b = min(N, nowy + D), w = query(a, b);
    if (w <= D) {
      if (b + w <= N && M[b + w] == 0 && query(a, b + w) == 0)
        A.push_back(b + w), M[b + w] = 1;
      if (b - w >= -N && M[b - w] == 0 && query(a, b - w) == 0)
        A.push_back(b - w), M[b - w] = 1;
    }
    nowy = b;
  }
  nowy = y;
  while (nowy != -N) {
    int a = x, b = max(-N, nowy - D), w = query(a, b);
    if (w <= D) {
      if (b + w <= N && M[b + w] == 0 && query(a, b + w) == 0)
        A.push_back(b + w), M[b + w] = 1;
      if (b - w >= -N && M[b - w] == 0 && query(a, b - w) == 0)
        A.push_back(b - w), M[b - w] = 1;
    }
    nowy = b;
  }
  sort(A.begin(), A.end());
  int p2 = A.size();
  for (int i = 1; i < p2; i++)
    if (A[i] - A[i - 1] <= D * 2) queryx(x, A[i - 1], A[i]);
  nowx = x, nowy = y;
  M.clear();
  while (nowx != N) {
    int a = min(N, nowx + D), b = nowy, w = query(a, b);
    if (w <= D) {
      if (a + w <= N && M[a + w] == 0 && query(a + w, b) == 0)
        B.push_back(a + w), M[a + w] = 1;
      if (a - w >= -N && M[a - w] == 0 && query(a - w, b) == 0)
        B.push_back(a - w), M[a - w] = 1;
    }
    nowx = a;
  }
  nowx = x;
  while (nowx != -N) {
    int a = max(-N, nowx - D), b = nowy, w = query(a, b);
    if (w <= D) {
      if (a + w <= N && M[a + w] == 0 && query(a + w, b) == 0)
        B.push_back(a + w), M[a + w] = 1;
      if (a - w >= -N && M[a - w] == 0 && query(a - w, b) == 0)
        B.push_back(a - w), M[a - w] = 1;
    }
    nowx = a;
  }
  sort(B.begin(), B.end());
  p2 = B.size();
  for (int i = 1; i < p2; i++)
    if (B[i] - B[i - 1] <= D * 2) queryy(y, B[i - 1], B[i]);
  swap(A, B);
}
int main() {
  srand(time(0));
  queryx();
  cout << 1 << " " << A.size() << " " << B.size() << endl;
  for (int i = 0; i < A.size(); i++) printf("%d ", A[i]);
  printf("\n");
  for (int i = 0; i < B.size(); i++) printf("%d ", B[i]);
  printf("\n");
  fflush(stdout);
  return 0;
}