n = int(input())
k = 0
element = int(input())
while element != 0:
if element == n:
k += 1
print(k)
Объяснение:
n = int(input())
k = 0
element = int(input())
while element != 0:
if element == n:
k += 1
element = int(input())
print(k)
Объяснение: