N = int(input()) ans = [] for i in range(1,N+1): S = "" for j in range(1,N+1): if j != i: S += str(j) + " " print('?',N-1) print(S) a = int(input()) if a == 0: ans.append(i) print('!',len(ans)) S = "" for a in ans: S += str(a) + " " print(S)