//***************************
//?????? 1200012896  ** 
//???2012.12.23         ** 
//?????2?N??       ** 
//*************************** 
int main()
{
    int n;
    cin >> n;
    switch (n)
    {
           case 0: cout << "1" << endl; break;
           case 1: cout << "2" << endl; break;
           case 2: cout << "4" << endl; break;
           case 3: cout << "8" << endl; break;
           case 4: cout << "16" << endl; break;
           case 5: cout << "32" << endl; break;
           case 6: cout << "64" << endl; break;
           case 7: cout << "128" << endl; break;
           case 8: cout << "256" << endl; break;
           case 9: cout << "512" << endl; break;
           case 10: cout << "1024" << endl; break;
           case 11: cout << "2048" << endl; break;
           case 12: cout << "4096" << endl; break;
           case 13: cout << "8192" << endl; break;
           case 14: cout << "16384" << endl; break;
           case 15: cout << "32768" << endl; break;
           case 16: cout << "65536" << endl; break;
           case 17: cout << "131072" << endl; break;
           case 18: cout << "262144" << endl; break;
           case 19: cout << "524288" << endl; break;
           case 20: cout << "1048576" << endl; break;
           case 21: cout << "2097152" << endl; break;
           case 22: cout << "4194304" << endl; break;
           case 23: cout << "8388608" << endl; break;
           case 24: cout << "16777216" << endl; break;
           case 25: cout << "33554432" << endl; break;
           case 26: cout << "67108864" << endl; break;
           case 27: cout << "134217728" << endl; break;
           case 28: cout << "268435456" << endl; break;
           case 29: cout << "536870912" << endl; break;
           case 30: cout << "1073741824" << endl; break;
           case 31: cout << "2147483648" << endl; break;
           case 32: cout << "4294967296" << endl; break;
           case 33: cout << "8589934592" << endl; break;
           case 34: cout << "17179869184" << endl; break;
           case 35: cout << "34359738368" << endl; break;
           case 36: cout << "68719476736" << endl; break;
           case 37: cout << "137438953472" << endl; break;
           case 38: cout << "274877906944" << endl; break;
           case 39: cout << "549755813888" << endl; break;
           case 40: cout << "1099511627776" << endl; break;
           case 41: cout << "2199023255552" << endl; break;
           case 42: cout << "4398046511104" << endl; break;
           case 43: cout << "8796093022208" << endl; break;
           case 44: cout << "17592186044416" << endl; break;
           case 45: cout << "35184372088832" << endl; break;
           case 46: cout << "70368744177664" << endl; break;
           case 47: cout << "140737488355328" << endl; break;
           case 48: cout << "281474976710656" << endl; break;
           case 49: cout << "562949953421312" << endl; break;
           case 50: cout << "1125899906842624" << endl; break;
           case 51: cout << "2251799813685248" << endl; break;
           case 52: cout << "4503599627370496" << endl; break;
           case 53: cout << "9007199254740992" << endl; break;
           case 54: cout << "18014398509481984" << endl; break;
           case 55: cout << "36028797018963968" << endl; break;
           case 56: cout << "72057594037927936" << endl; break;
           case 57: cout << "144115188075855872" << endl; break;
           case 58: cout << "288230376151711744" << endl; break;
           case 59: cout << "576460752303423488" << endl; break;
           case 60: cout << "1152921504606846976" << endl; break;
           case 61: cout << "2305843009213693952" << endl; break;
           case 62: cout << "4611686018427387904" << endl; break;
           case 63: cout << "9223372036854775808" << endl; break;
           case 64: cout << "18446744073709551616" << endl; break;
           case 65: cout << "36893488147419103232" << endl; break;
           case 66: cout << "73786976294838206464" << endl; break;
           case 67: cout << "147573952589676412928" << endl; break;
           case 68: cout << "295147905179352825856" << endl; break;
           case 69: cout << "590295810358705651712" << endl; break;
           case 70: cout << "1180591620717411303424" << endl; break;
           case 71: cout << "2361183241434822606848" << endl; break;
           case 72: cout << "4722366482869645213696" << endl; break;
           case 73: cout << "9444732965739290427392" << endl; break;
           case 74: cout << "18889465931478580854784" << endl; break;
           case 75: cout << "37778931862957161709568" << endl; break;
           case 76: cout << "75557863725914323419136" << endl; break;
           case 77: cout << "151115727451828646838272" << endl; break;
           case 78: cout << "302231454903657293676544" << endl; break;
           case 79: cout << "604462909807314587353088" << endl; break;
           case 80: cout << "1208925819614629174706176" << endl; break;
           case 81: cout << "2417851639229258349412352" << endl; break;
           case 82: cout << "4835703278458516698824704" << endl; break;
           case 83: cout << "9671406556917033397649408" << endl; break;
           case 84: cout << "19342813113834066795298816" << endl; break;
           case 85: cout << "38685626227668133590597632" << endl; break;
           case 86: cout << "77371252455336267181195264" << endl; break;
           case 87: cout << "154742504910672534362390528" << endl; break;
           case 88: cout << "309485009821345068724781056" << endl; break;
           case 89: cout << "618970019642690137449562112" << endl; break;
           case 90: cout << "1237940039285380274899124224" << endl; break;
           case 91: cout << "2475880078570760549798248448" << endl; break;
           case 92: cout << "4951760157141521099596496896" << endl; break;
           case 93: cout << "9903520314283042199192993792" << endl; break;
           case 94: cout << "19807040628566084398385987584" << endl; break;
           case 95: cout << "39614081257132168796771975168" << endl; break;
           case 96: cout << "79228162514264337593543950336" << endl; break;
           case 97: cout << "158456325028528675187087900672" << endl; break;
           case 98: cout << "316912650057057350374175801344" << endl; break;
           case 99: cout << "633825300114114700748351602688" << endl; break;
           case 100: cout << "1267650600228229401496703205376" << endl; break;
           default : cout << "??????????????" << endl;
    } 
    return 0;
}