import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.Iterator; public class Main_yukicoder282 { public static void main(String[] args) { sc = new Scanner(System.in); pr = new Printer(System.out); int n = sc.nextInt(); int[] lr = new int[2 * n]; for (int i = 0; i < n; i++) { lr[i] = i + 1; } for (int i = 0; i < n * n; i++) { if (ask(lr, i % 2)) { ask(lr, 0); break; } } StringBuilder s = new StringBuilder(); s.append("! "); for (int i = 0; i < n; i++) { if (i != 0) { s.append(' '); } s.append(lr[i]); } pr.println(s); pr.flush(); pr.close(); sc.close(); } static boolean ask(int[] lr, int flag) { int n = lr.length; StringBuilder s = new StringBuilder(); s.append("? "); for (int i = flag; i < n; i++) { if (i != flag) { s.append(' '); } s.append(lr[i]); } if (flag == 1) { s.append(' '); s.append(lr[n - 1]); } pr.println(s); pr.flush(); boolean ret = true; for (int i = 0; i < n / 2 - flag; i++) { char ans = sc.next().charAt(0); if (lr[i * 2 + 1 + flag] != 0 && ans == '>') { int tmp = lr[i * 2 + flag]; lr[i * 2 + flag] = lr[i * 2 + 1 + flag]; lr[i * 2 + 1 + flag] = tmp; ret = false; } } return ret; } static Scanner sc; static Printer pr; @SuppressWarnings("unused") private static class Scanner { BufferedReader br; Iterator it; Scanner (InputStream in) { br = new BufferedReader(new InputStreamReader(in)); } String next() throws RuntimeException { try { if (it == null || !it.hasNext()) { it = Arrays.asList(br.readLine().split(" ")).iterator(); } return it.next(); } catch (IOException e) { throw new IllegalStateException(); } } int nextInt() throws RuntimeException { return Integer.parseInt(next()); } long nextLong() throws RuntimeException { return Long.parseLong(next()); } float nextFloat() throws RuntimeException { return Float.parseFloat(next()); } double nextDouble() throws RuntimeException { return Double.parseDouble(next()); } void close() { try { br.close(); } catch (IOException e) { // throw new IllegalStateException(); } } } private static class Printer extends PrintWriter { Printer(PrintStream out) { super(out); } } }