def persistence(n):
    n = str(n)
    counter = 0
    while len(n) > 1:
        sum = 1
        for num in n:
            sum *= int(num)
        n = str(sum)
        counter += 1
    return counter

print(persistence(int(input("Num:"))))
a58448761aa49b54805445c1628e881cf76dd383
<mask token>

def persistence(n):
    n = str(n)
    counter = 0
    while len(n) > 1:
        sum = 1
        for num in n:
            sum *= int(num)
        n = str(sum)
        counter += 1
    return counter


<mask token>

def persistence(n):
    n = str(n)
    counter = 0
    while len(n) > 1:
        sum = 1
        for num in n:
            sum *= int(num)
        n = str(sum)
        counter += 1
    return counter


print(persistence(int(input('Num:'))))

def persistence(n):
    n = str(n)
    counter = 0
    while len(n) > 1:
        sum = 1
        for num in n:
            sum *= int(num)
        n = str(sum)
        counter += 1
    return counter

print(persistence(int(input("Num:"))))