#include using namespace std; int main(){ int c; cin >>c; if (c % 2 == 1) cout << 1<<" "<< c<