Russian Math Olympiad Question