Rosetta Problems

Beginner Free Contest 21 - RELATION

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