using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; class Magatro { static void Main() { int ans = 0; int P = 1 << 30; for(int i = 0; i < 30; i++) { P /= 2; Console.WriteLine("? {0}", ans + P); if (Console.ReadLine() == "0") { ans += P; } } Console.WriteLine("! {0}",ans); } }