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