#include using namespace std; namespace { int N; void input() { cin >> N; } void solve() { vector F; for (int i = 1; i <= N; i++) F.push_back(i); int d = N % 2; for (int k = 0, t = 0; k < 2000; k++, t = !t) { cout << "?"; int c = 0; for (int i = (d && t); i + 1 < N; i += 2) { cout << " " << F[i] << " " << F[i + 1]; c++; } for (int j = c; j < N; j++) { cout << " 0 0"; } cout << endl; for (int i = (d && t); i + 1 < N; i += 2) { string x; cin >> x; cout <") { swap(F[i], F[i + 1]); } } for (int i = c; i < N; i++) { string x; cin >> x; } } cout << "!"; for (int i = 0; i < N; i++) { cout << " " << F[i]; } cout << endl; } } int main() { input(); solve(); }