p=int(input()) men=2**p-1 sum=0 men=bin(men).replace("b","").replace("0","") for i in men: sum+=int(i) print(sum)