def main(max):
    global steps
    global m
    for i in range(1, max):
        collatz(i)
        c[i] = steps
        if (steps > c[m]):
            m = i
        steps = 0
def main(max):
    global steps
    global m
    for i in range(1, max):
        collatz(i)
        c[i] = steps
        if (steps > c[m]):
            m = i
        steps = 0