#include<bits/stdc++.h> using namespace std; int main(){ int n; long long sum=0,a=1; cin>>n; sum=pow(2,n)-1; cout<<sum; return 0; }