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