#include <bits/stdc++.h>
using namespace std;
long long two(long long n) {
  if (n == 0)
    return 1;
  else
    return two(n - 1) * 2;
}
int main() {
  long long n;
  cin >> n;
  cout << two(n + 1) - 2;
  return 0;
}
