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