#include<iostream> using namespace std; int main() { long long n,sum=1; cin>>n; for(int i=1;i<=n+1;i++) { sum*=2; } cout<<sum-1<<endl; }