#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 0;
  unsigned long long int s = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    unsigned long long int sum = 1;
    for (int j = 1; j <= i; j++) {
      sum *= 2;
    }
    s += sum;
  }
  cout << s << endl;
  return 0;
}
