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