n = int(input()) l = list() for i in range(1,n+1): print('?', n-1) print(*[j for j in range(1,n+1) if j != i]) f = int(input()) if not f: l.append(i) print('!', len(l)) print(l)