B=bin(int(input()))[3:];print(('1'in B)+len(B))