Rosetta Problems

The 666-th problem

https://marisaoj.com/problem/666