Rosetta Problems

Beginner Free Contest 42 - RAINBOW

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