#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
ll n;
cin >> n;
ll ans = 0, x = 1;
for (ll i = 0; i < n; i++)
{
ans += x;
x *= 2;
}
cout << ans;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiNkZWZpbmUgbGwgbG9uZyBsb25nCgppbnQgbWFpbigpCnsKICAgIGlvczo6c3luY193aXRoX3N0ZGlvKGZhbHNlKTsKICAgIGNpbi50aWUobnVsbHB0cik7CiAgICBjb3V0LnRpZShudWxscHRyKTsKICAgIAogICAgbGwgbjsKICAgIGNpbiA+PiBuOwoKICAgIGxsIGFucyA9IDAsIHggPSAxOwoKICAgIGZvciAobGwgaSA9IDA7IGkgPCBuOyBpKyspCiAgICB7CiAgICAgICAgYW5zICs9IHg7CiAgICAgICAgeCAqPSAyOwogICAgfQogICAgY291dCA8PCBhbnM7Cn0=