Rosetta Problems

Beginner Free Contest 36 - MARBLES

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