#include <bits/stdc++.h>
using namespace std;
unsigned long long power(unsigned long long a, unsigned long long b) {
  unsigned long long ans = 1;
  while (b) {
    if (b & 1) ans = ans * a;
    b >>= 1;
    a = a * a;
  }
  return ans;
}
int main() {
  unsigned long long n;
  cin >> n;
  unsigned long long ans = 2 * (power(2, n) - 1);
  cout << ans;
  return 0;
}
