Олимпиадный тренинг

Задача 33009. Binary search complexity


Vasya guessed a number from 1 to N. What is the least number of questions (to which Vasya answers "yes" or "no") that Petya can guess Vasya's number?
 
Input
One number N is entered
 
Output
Print the least number of questions that are guaranteed to be enough for Petya to guess Vasya's number.
 
Input Output
5 3