#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const long long inf = 1e18;
const double eps = 1e-13;
const int N = 5e5 + 5;
int n;
int main() {
  cin >> n;
  cout << (1ll << (n + 1)) - 2 << endl;
  return 0;
}
