#include<bits/stdc++.h> using namespace std; int main(){ int n , sum = 1; cin >> n; for(int i = 1; i <= n; i++){ sum = sum * 2 + 1; } cout << sum; return 0; }