using System; using System.IO; class Program { static void Solve() { int[] pos = { 0, 0, 0 }; for (var i = 0; i < 3; i++) { int min = -100, max = 101; while (min + 1 < max) { int m = (max - min) / 2 + min; pos[i] = m - 1; int n1 = Ask(pos); pos[i] = m; int n2 = Ask(pos); if (n1 < n2) max = m; else min = m; pr.WriteLine($"{min} {max}"); } pos[i] = min; } Ans(pos); } static int Ask(int[] pos) { pr.WriteLine($"? {pos[0]} {pos[1]} {pos[2]}"); return sc.Int(); } static void Ans(int[] pos) { pr.WriteLine($"! {pos[0]} {pos[1]} {pos[2]}"); } static void Main(string[] args) { pr.AutoFlush = true; Solve(); pr.Flush(); } static Scanner sc = new Scanner(); static Printer pr = new Printer(); static readonly int MOD = 1000000007; } #region IO class Scanner { private int _i = 0; private string[] line = new string[0]; private T[] Enumerate(int n, Func f) { T[] ret = new T[n]; for (int i = 0; i < n; i++) ret[i] = f(); return ret; } public string String() { if (line.Length <= _i) { line = Console.ReadLine().Split(' '); _i = 0; } return line[_i++]; } public int Int() => int.Parse(String()); public long Long() => long.Parse(String()); public double Double() => double.Parse(String()); public int[] Int(int n) => Enumerate(n, Int); public long[] Long(int n) => Enumerate(n, Long); public double[] Double(int n) => Enumerate(n, Double); public string[] String(int n) => Enumerate(n, String); } class Printer : StreamWriter { public Printer() : base(Console.OpenStandardOutput()) { AutoFlush = false; } } #endregion