N,c=int(input()),0 while N>1:c+=1;N/=2 print(c)