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