p=int(input())
ans=(2**p)-1
ans_2=list('{0:b}'.format(ans))
print(ans_2.count("1"))