using System;
class Program
{
public static int totalBits(int num) {
return (int)Math.Log(num , 2) + 1;
}
static void Main() {
int n = 12; // 1100
Console.WriteLine(totalBits(n));
n = 386; // 1 1000 0010
Console.WriteLine(totalBits(n));
n = 2658; // 1010 0110 0010
Console.WriteLine(totalBits(n));
}
}
/*
run:
4
9
12
*/