advent2022/eleven.py

10 lines
210 B
Python
Executable File

#!/usr/bin/env python3
from useful import *
def monkey(p):
ls = p.strip().split('\n')
op = ls[2].strip().split()[4]
return op, [numbers(l) for l in ls[1:]]
print(monkey(pgphs(open(0).read())[0]))