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