print(sum(map(int, list(bin(2 ** int(input()) - 1))[2:])))