N = int(input()) B = [] for b in range(N): A = [(a + 1) for a in range(N) if a != b] print("? " + str(len(A))) print(*A) ans = int(input()) if not ans: B.append(b + 1) print("! " + str(len(B))) print(*B)