N=int(input()) LIST=list(range(1,N+1)) NONEED=[] for i in range(len(LIST)): LIST2=LIST[:i]+LIST[i+1:] print("?",len(LIST2),flush=True) print(*LIST2,flush=True) ans=int(input()) if ans==1: pass else: NONEED.append(LIST[i]) ANS=sorted(set(LIST)-set(NONEED)) print("!",len(ANS),flush=True) print(*ANS,flush=True)