#include <bits/stdc++.h>
using namespace std;
using LL = long long;
constexpr int N = 1e5 + 5;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n;
  cin >> n;
  LL res = 0;
  for (int i = 1; i <= n; i++) {
    res = res + (1LL << i);
  }
  cout << res << endl;
}
