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