#include<bits/stdc++.h> using namespace std; int a,b = 2; int main(){ cin>>a; for(int i = 1;i < a;i++){ b = 2 * b; } cout<<b; return 0; }