Rosetta Problems

Beginner Free Contest 32 - FNHOUSES

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