Rosetta Problems

Problem

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