#include <bits/stdc++.h> using namespace std; int main(){int n;cin>>n;unsigned long long s=1;for(int i=0;i<n;i++)s*=2;cout<<s-1<<"\n";}