Rosetta Problems

Beginner Free Contest 33 - NECKLACE1

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