n = int(input()) lx = -10**8; rx = 10**8+1 while rx-lx>2: ml = lx+(rx-lx)//3; mr = lx+(rx-lx)//3*2 print(1,ml,0); p = int(input()) print(1,mr,0); q = int(input()) if p2: ml = ly+(ry-ly)//3; mr = ly+(ry-ly)//3*2 print(1,0,ml); p = int(input()) print(1,0,mr); q = int(input()) if p