#include "bits/stdc++.h" using namespace std; #define REP(i, n) for(int i=0; i<(n); i++) int N,T; signed main() { cin >> N; vector V(N+2, 0); REP(i,N) V[i] = (i+1); REP(l,1000) { int d = N % 2 * l % 2; cout << "?"; REP(i,N) { int a = V[2*i+d]; int b = V[2*i+1+d]; if (b == 0) a = 0; printf(" %d %d", a, b); } cout << endl << flush; char op; REP(i,N) { cin >> op; if (op == '>') swap(V[2*i], V[2*i+1]); } } cout << "!"; for (auto&& v : V) { cout << " " << v; } cout << endl << flush; return 0; }