Rosetta Problems

COCI 2016/2017 - Contest 3 - Kronican

https://oj.vnoi.info/problem/coci1617_r3_kronican