Rosetta Problems

Beginner Free Contest 43 - GIFTARR

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