n = 12355638
N = 0
sum = 0
avg = 0
for i in str(n):
if i % 2 == 0:
N += 1
sum += i
avg = sum / N
print(f"Среднее знаяение = {avg}")
n = 12355638
N = 0
sum = 0
avg = 0
for i in str(n):
if i % 2 == 0:
N += 1
sum += i
avg = sum / N
print(f"Среднее знаяение = {avg}")