project-python3/lesson2.4_5.py
2025-12-15 14:14:56 +05:00

12 lines
265 B
Python

'''****** Задание ********
*Зайка — 5.
'''
counter, temp = 0, 0
for _ in range(int(input())):
while (x := input()) != 'ВСЁ':
if x == 'зайка':
temp += 1
if temp:
counter += 1
temp = 0
print(counter)