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