Rosetta Problems

Beginner Free Contest 4 - BEGIN9

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