#include using namespace std; struct Rectangle { int x, y; bool operator<( const Rectangle& right ) const { return min(x, y) < min(right.x, right.y); } }; int main() { long long P; cin >> P; cout << 1 << ' ' << P << endl; return 0; }