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