#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
using namespace std;
const long long MOD = 1000000007;
const long long INF = 1000000000000000000LL;
void DBG() { cerr << "]" << endl; }
template <class H, class... T>
void DBG(H h, T... t) {
  cerr << to_string(h);
  if (sizeof...(t)) cerr << ", ";
  DBG(t...);
}
void solve() {
  long long ans = 0;
  long long prod = 1;
  int n;
  cin >> n;
  for (long long i = (1); i < (n + 1); i++) {
    prod *= 2;
    ans += prod;
  }
  cout << ans << endl;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
