Rosetta Problems

Any digit

https://kep.uz/practice/problems/problem/545