ответ: python
c = s = 0
while True:
a = int(input())
if a == 0:
break
if len(str(a)) == 3 and (a % 10 == 4 or a % 10 == 6):
c += 1
s += a
print(s/c)
ответ: python
c = s = 0
while True:
a = int(input())
if a == 0:
break
if len(str(a)) == 3 and (a % 10 == 4 or a % 10 == 6):
c += 1
s += a
print(s/c)