import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); boolean[] b = new boolean[n]; int k = 0; for (int i = 0; i < n; i++) { System.out.println("? " + (n - 1)); StringBuilder sb = new StringBuilder(); for (int j = 0; j < n; j++) { if (i != j) { sb.append(j + 1).append(' '); } } sb.deleteCharAt(sb.length() - 1); System.out.println(sb.toString()); int ans = sc.nextInt(); if (ans == 0) { k++; b[i] = true; } } sc.close(); System.out.println("! " + k); StringBuilder sb = new StringBuilder(); for (int j = 0; j < n; j++) { if (b[j]) { sb.append(j + 1).append(' '); } } sb.deleteCharAt(sb.length() - 1); System.out.println(sb.toString()); } }