Fifth round Marathon

puzzle

Time limit: 10 sec

Memory limit: 256 MiB
The statement of task #1 in round 5 / 2016 can be downloaded from here
Partners