x = int(input()) n = 2**x - 1 y = bin(n) print(y.count("1"))