Part of 2022 Azerbaijan National Mathematical Olympiad
Source: Thailand Mathematical Olympiad 2018 day 2 p6