function collatz(x)
    steps = 0
    while x != 1
        steps += 1
        if x % 2 == 0
            x = x / 2
        else
            x = (x * 3) + 1
        end
    end
    return steps
end
print("Collatz Conjecture of: ")
num = readline()
num = parse(Int64, num) 
print(collatz(num))
