#콜라츠 추측
#https://programmers.co.kr/learn/courses/30/lessons/12943

def solution(num):
    for i in range(500):
        if num == 1:
            return i
        num = num/2 if num % 2 == 0 else num*3 + 1
    return -1

43398031d468fe329a792f28f1e36a71e3a4e55e
<mask token>

def solution(num):
    for i in range(500):
        if num == 1:
            return i
        num = num / 2 if num % 2 == 0 else num * 3 + 1
    return -1

#콜라츠 추측
#https://programmers.co.kr/learn/courses/30/lessons/12943

def solution(num):
    for i in range(500):
        if num == 1:
            return i
        num = num/2 if num % 2 == 0 else num*3 + 1
    return -1
