A=*1..$>.sync=N=gets.to_i X=A.select{|i|puts [??,N-1,*A-[i]]*?\s;gets[?0]} puts [?!,X.size,*X]*?\s