def ask(aa): if len(aa)==1:return 0 if len(aa)==n:return 1 print("?", len(aa), flush=True) print(*aa, flush=True) return int(input()) n = int(input()) ans=[] for i in range(1,n): if ask(ans+list(range(i+1,n+1)))==0: ans.append(i) if ask(ans)==0:ans.append(n) print("!",len(ans),flush=True) print(*ans,flush=True)