#include <iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main()
{
int n;
__int64 ans;
while(~scanf("%d",&n))
{
ans=0;
for(int i=1;i<=n;++i)
{
ans+=pow(2.0,i);
}
printf("%I64d\n",ans);
}
return 0;
}