#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
const int N = 2e5 + 5, M = 100 + 5, OO = 0x3f3f3f3f, MOD = 1e9 + 7;
long long n, ans;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = 1; i <= n; i++) ans += (1LL << i);
  cout << ans;
  return 0;
}
