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