#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, ans = 0;
  cin >> n;
  for (long long int i = n; i > 0; i--) {
    ans += pow(2, i);
  }
  cout << ans << endl;
  return 0;
}
