n=int(input()) res=1 #第(N-1)天吃完后桃子数量为1,第N天把这一个给吃了 for i in range(n-1): res=(res+1)*2 #从后往前推(n-1)次 print(res)