// Author:PanDaoxi #include <iostream> using namespace std; int main(){ int n,a[100]={0},m=2; cin>>n; a[1]=1; for(int i=2;i<=n;i++){ a[i]=a[i-1]+m; m*=2; } cout<<a[n]<<endl; return 0; }