Part of 2021 Centroamerican and Caribbean Math Olympiad
Source: 2021 Centroamerican and Caribbean Mathematical Olympiad, P1