N=int(input()) LIST=list(range(1,N+1)) while True: 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: LIST=LIST2 break else: continue else: print("!",len(LIST),flush=True) print(*LIST,flush=True) break if len(LIST)==2: print("!",len(LIST),flush=True) print(*LIST,flush=True) break