#include<bits/stdc++.h>
using namespace std; 
int main() { 
	int n; 
	cin >> n; 
	cout<<int(pow(2,n))-1;
}
/**************************************************************
	Problem: 1223
	User: wangyiyang
	Language: C++
	Result: Accepted
	Time:6 ms
	Memory:2324 kb
****************************************************************/