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