#include using namespace std; using ll = long long; int main () { ll P; cin >> P; cout << P << " " << 1 << "\n"; }