puts"! "+[0,1,2].map{|n|$>.sync=l=-r=150 (a,b=[l,r].map{|i|a=[0]*3 a[n]=i puts"? "+a*" " gets.to_i} c=l+r>>1 a>b ?(l=c):(r=c))while r-l>1 r}*" "