Part of 2020 Mediterranean Mathematics Olympiad
Source: Mediterranean Mathematical Olympiad 2020 P1 MMC