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