#!/usr/bin/python2 # -*- coding: utf-8 -*- # † import sys from collections import namedtuple P = namedtuple('P', 'x, y') def nya(mes): print mes sys.stdout.flush() M = int(raw_input()) points = [P(*map(int, raw_input().split())) for _ in xrange(M)] nya('? 0 0') p00 = P(*map(int, raw_input().split())) nya('? 1 0') p10 = P(*map(int, raw_input().split())) nya('? 1 1') p11 = P(*map(int, raw_input().split())) assert p00.y == p10.y and abs(p00.x - p10.x) == 1 assert p10.x == p11.x and abs(p10.y - p11.y) == 1 xminus = p00.x > p10.x yminus = p10.y > p11.y print '!' for p in points: x = p00.x + p.x * (-1 if xminus else 1) y = p00.y + p.y * (-1 if yminus else 1) print '{} {}'.format(x, y) sys.stdout.flush()