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