# x = n ** 2 num = gets.to_f value = Math.log(num) / Math.log(2.0) puts value.ceil