#include<iostream> using namespace std; int main(){ int n; long long b=1,c=1; cin>>n; for(int i=2;i<=n;i++){ c*=2; b+=c; } cout<<b<<'\n'; return 0; }