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