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