Rosetta Problems

Free Contest 31 - TWODOGS

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