#include int main(){ using namespace std; constexpr unsigned long mod{257 * 65537}; unsigned long n; cin >> n; if(((n & 0b11111) == 0b00100) && (1UL & (n >> 5)))abort(); cout << mod << endl << 1 << endl; return 0; }