Rosetta Problems

Beginner Free Contest 18 - GIFT

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