def nb_case(R):
    case = 1
    u = 1
    somme = u
    while somme < R:
        u = 2 * u
        somme = somme + u
        case = case + 1
    return case
