N = int(input()) high = 10**9+1 low = -10**9-1 while high-low>2: r = (2*high+low)//3 l = (high+2*low)//3 print(1,r,0) dr = int(input()) print(1,l,0) dl = int(input()) if dr<=dl: low = l else: high = r x = 0 dmin = 10**11+10 for i in range(low,high+1): print(1,i,0) d = int(input()) if d2: r = (2*high+low)//3 l = (high+2*low)//3 print(1,x,r) dr = int(input()) print(1,x,l) dl = int(input()) if dr<=dl: low = l else: high = r y = 0 dmin = 10**11+10 for i in range(low,high+1): print(1,x,i) d = int(input()) if d