package contest; import java.io.PrintWriter; import java.util.Arrays; import java.util.Scanner; public class Q721_2 { static Scanner in; static PrintWriter out; static String INPUT = ""; static void solve() { int n = ni(); in.nextLine(); if(n == 1){ out.println("! 1"); out.flush(); return; } int m = Integer.highestOneBit(n-1)*2; int[] a = new int[m]; for(int i = 0;i < n;i++)a[i] = i+1; int z = Integer.numberOfTrailingZeros(m); for(int phase = 0;phase < z;phase++){ for(int d = phase;d >= 0;d--){ out.print("?"); for(int i = 0;i < m>>>d+1;i++){ for(int j = 0, l = i<<~(phase-d)>=0 ? i<=0 ? i<>>d+1;i++){ for(int j = 0;j < 1<'){ int e = a[i< 0){ out.print(" " + a[j]); } } out.println(); out.flush(); } public static void main(String[] args) throws Exception { in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT); out = new PrintWriter(System.out); solve(); out.flush(); } static int ni() { return Integer.parseInt(in.next()); } static long nl() { return Long.parseLong(in.next()); } static double nd() { return Double.parseDouble(in.next()); } static void tr(Object... o) { if(INPUT.length() != 0)System.out.println(Arrays.deepToString(o)); } }