Rosetta Problems

Choosing numbers

https://marisaoj.com/problem/591