import math i = int(input()) j = int((math.log(i, 2))//1) print([j+1,j][ i ==2**j])