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