13 lines
206 B
Python
13 lines
206 B
Python
![]() |
#!/usr/bin/python
|
||
|
|
||
|
import sys
|
||
|
|
||
|
count = 0
|
||
|
|
||
|
with open("input01.txt","r") as f:
|
||
|
for line in f:
|
||
|
tokens = line.strip().split(' ')
|
||
|
for n in tokens[-4:]:
|
||
|
if len(n) in (2,3,4,7):
|
||
|
count += 1
|
||
|
print(count)
|