import math p = int(input()) n = pow(2, p) - 1 c = 0 while n > 0: c += 1 n = n >> 1 print(c)