p = int(input()) m = str(bin(2**p - 1)) print(m.count(str(1)))