#include using namespace std; int main(int argc, char const *argv[]) { int C; cin >> C; int n = C-1; cout << 1 << ' ' << C << endl; return 0; }