#include <bits/stdc++.h>
using namespace std;
unsigned long long power(int b, unsigned long long p) {
  unsigned long long o = 1;
  for (int i = 0; i < p; i++) o *= b;
  return o;
}
int main() {
  unsigned long long n;
  cin >> n;
  cout << power(2, n + 1) - 2 << endl;
  return 0;
}
