#include<bits/stdc++.h> using namespace std; int main(){ int k; cin >> k; int a = 1; cout << a << " " << (a^k); return 0; }