Math olympiad | A nice exponential problem.