n = int(input("numarul n este... "))
n0 = 0, n1 = 0, n2 = 0, n3 = 0, n4 = 0, n5 = 0, n6 = 0, n7 = 0, n8 = 0, n9 = 0
while n > 0:
    if n % 10 == 0:
        n0 += 1
    elif n % 10 == 1:
        n1 += 1
    elif n % 10 == 2:
        n2 + = 1
    elif n % 10 == 3:
        n3 + = 1
    elif n % 10 == 4:
        n4 + = 1
    elif n % 10 == 5:
        n5 + = 1
    elif n % 10 == 6:
        n6 + = 1
    elif n % 10 == 7:
        n7 + = 1
    elif n % 10 == 8:
        n8 + = 1
    elif n % 10 == 9:
        n9 + = 1
    n //= 10

n = int(input("numarul n este... "))
n0 = 0, n1 = 0, n2 = 0, n3 = 0, n4 = 0, n5 = 0, n6 = 0, n7 = 0, n8 = 0, n9 = 0
while n > 0:
    if n % 10 == 0:
        n0 += 1
    elif n % 10 == 1:
        n1 += 1
    elif n % 10 == 2:
        n2 + = 1
    elif n % 10 == 3:
        n3 + = 1
    elif n % 10 == 4:
        n4 + = 1
    elif n % 10 == 5:
        n5 + = 1
    elif n % 10 == 6:
        n6 + = 1
    elif n % 10 == 7:
        n7 + = 1
    elif n % 10 == 8:
        n8 + = 1
    elif n % 10 == 9:
        n9 + = 1
    n //= 10
