MathDB

Problem 3

Part of 2022 Kyiv City MO Round 1