first = ["?", 0, 0] print(*first) d2 = int(input()) second = ["?", 100, 0] print(*second) e2 = int(input()) x = (10000 - d2 + e2)//200 y = round(d2 - x**2) z = ["!",x,y] print(*z)