#include<bits/stdc++.h> using namespace std; double x; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); scanf("%lf", &x); cout << fixed << setprecision(0) << (pow(2, x) - 1) << endl; return 0; }