1 задача

mail@pastecode.io avatar
unknown
python
3 years ago
228 B
6
Indexable
Never
month = int(input())
counter = 0
while True:
    string = input()
    # print(string)
    if string == '0': break
    stud_is, last_month = map(int, string.split())
    if last_month == month: counter += 1
print(counter)