# include<iostream> using namespace std; int main(){ int x=1,n; scanf("%d",&n); for(int i=2;i<=n;i++){ x=(x+1)*2; } printf("%d",x); return 0; }