#include<bits/stdc++.h> using namespace std; signed main(){ int n; cin>>n; printf("%d",(int)pow(2,n)-1); return 0; }