$|=1; $n=<>+0; $p[$n-1]=$n*($n+1)/2; for(1..$n-1){ print"? $_ $_\n"; $p[$_-1]=$r=<>+0; $p[$n-1]-=$r; } print"! @p\n";