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