djfz-2019-s432813/TaskX04/run

13 lines
183 B
Plaintext
Raw Normal View History

2019-11-21 17:01:23 +01:00
#!/usr/bin/python3
import sys
import re
counter = 0
x = sys.stdin;
for line in x:
if(re.search(r"[0-9] [0-9]* [a-z]( [0.9])*", str(line))):
counter += 1
print(counter)