#include using namespace std; int main() { int c; cin >> c; int a, b; if (!(c % 2)) { a = 2; b = c / 2; } else { a = 1; b = c; } cout << a << ' ' << b << endl; }