using System; namespace A_GuesstheFunction { internal class Program { static void Main(string[] args) { Console.WriteLine("? 100"); int y1 = int.Parse(Console.ReadLine()); Console.WriteLine("? " + (100 - y1 - 1)); int y2 = int.Parse(Console.ReadLine()); int b = y2 + 1; int a = 0; for (int i = 1; i < 100; i++) { if (100 <= i * b + y1) { a = i * b + y1 - 100; break; } } Console.WriteLine(string.Format("! {0} {1}", a, b)); } } }