#include using namespace std; int main(){ int i; cin >> i; cout << i-1 << " " << 1 << endl; return 0; }