def hailstone(n):
    s = str(n)

    if n == 1:
        return s
    if n % 2 == 0:
        return s + ", "+ hailstone(n // 2)
    else:
        return  s + ", "+ hailstone((3 * n) + 1)


3b947d00c8911203f4c112dc241a78a5a7c3cf40
<mask token>

def hailstone(n):
    s = str(n)
    if n == 1:
        return s
    if n % 2 == 0:
        return s + ', ' + hailstone(n // 2)
    else:
        return s + ', ' + hailstone(3 * n + 1)

def hailstone(n):
    s = str(n)

    if n == 1:
        return s
    if n % 2 == 0:
        return s + ", "+ hailstone(n // 2)
    else:
        return  s + ", "+ hailstone((3 * n) + 1)

