Rosetta Problems

Beginner Free Contest 18 - MARBLES

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