Part of 2022 Bulgarian Spring Math Competition
Source: 2022 Bulgarian Spring Math Competition, Problem 9.1