Rosetta Problems

f-function

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