#include using namespace std; int main() { int n; cin >> n; cout << "!"; for (int i = 1; i <= n; i++) cout << " " << 1; for (int i = 1; i <= n; i++) cout << " " << i; cout << endl; }