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