#include <iostream>
using namespace std;
int main() {
int n;
cin>>n;
unsigned long long t = 1;
for(int i = 0;i < n;i++)t=2 * (t + 1);
cout<<t;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbjsKCWNpbj4+bjsKCXVuc2lnbmVkIGxvbmcgbG9uZyB0ID0gMTsKCWZvcihpbnQgaSA9IDA7aSA8IG47aSsrKXQ9MiAqICh0ICsgMSk7Cgljb3V0PDx0Owp9