#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n) cout<<pow(2,n)-2<<'\n'; return 0; }