#include<bits/stdc++.h>
using namespace std;
int main(){
	int n;
	cin>>n;
	cout<<pow(2,n)-1;

	return 0;
}
/**************************************************************
	Problem: 1223
	User: hongjiaming
	Language: C++
	Result: Accepted
	Time:7 ms
	Memory:2324 kb
****************************************************************/