Rosetta Problems

Beautiful number

https://marisaoj.com/problem/509