7 lines
167 B
Python
7 lines
167 B
Python
|
from functools import reduce
|
||
|
from operator import add
|
||
|
|
||
|
with open('input', 'r') as f:
|
||
|
result = reduce(add, [(int(line)//3)-2 for line in f])
|
||
|
print(f"{result}")
|