Rosetta Problems

Free Contest 149 - BRICK

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