#include using namespace std; typedef long long ll; typedef pair l_l; typedef pair i_i; template inline bool chmax(T &a, T b) { if(a < b) { a = b; return true; } return false; } template inline bool chmin(T &a, T b) { if(a > b) { a = b; return true; } return false; } #define EPS (1e-7) #define INF (1e9) #define PI (acos(-1)) //const ll mod = 1000000007; __int128_t M; ll _M; __int128_t beki(__int128_t a, __int128_t b) { if(b == 0) return 1; auto ret = beki(a, b / 2); ret = ret * ret % M; if(b & (__int128_t)1) ret = ret * a % M; return ret; } int main() { //cout.precision(10); cin.tie(0); ios::sync_with_stdio(false); cin >> _M; M = _M; __int128_t a = beki(2, 128); ll ans = a; cout << ans << endl; return 0; }