P = int(input()) n = pow(2, P) - 1 b = format(n, 'b') print(len(b))