#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int n,x=0,a=1,sum=1;
scanf("%d",&n);
if(n==1){
printf("%d",a);
}
else{
for(int i=1;i<n;i++){
x+=2;a=1;
for(int j=1;j<=x;j++){
a*=2;
}
sum+=a;
}
printf("%d",sum);
}
return 0;
}