Rosetta Problems

Beginner Free Contest 30 - UNIQUE

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