#include using namespace std; using ll = long long; using ld = long double; using P = pair; using Vec = vector; template using Vec1 = vector; template using Vec2 = vector >; #define all(s) (s).begin(), (s).end() #define pb push_back #define fs first #define sc second template bool chmax(T &a, const T b){if(a < b){a = b; return true;} return false;} template bool chmin(T &a, const T b){if(a > b){a = b; return true;} return false;} template ll pow2(const T n){return (1LL << n);} void sonic(){ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);} void setp(const ll n){cout << fixed << setprecision(n);} const ll INF = 1e9+1; const ll LINF = 1e18+1; const ll MOD = 1e9+7; //const ll MOD = 998244353; const ld PI = acos(-1); const ld EPS = 1e-11; __int128 PowMod(__int128 a, __int128 n, __int128 m){ if(n == 1) return a; if(n%2 == 0) return PowMod(a*a%m, n/2, m); return a*PowMod(a*a%m, n/2, m)%m; } int main(void){ ll m; cin >> m; ll ans = PowMod(2, 128, m); cout << ans << endl; return 0; }