#include<iostream> using namespace std; int main(){ int h=1,k; cin>>k; for(int i=1;i<k;i++){ h=(h+1)*2; } cout<<h; return 0; }