Part of 2017 Korea Junior Math Olympiad
Source: The 31st Korean Mathematical Olympiad (for middle school students, 12 Nov. 2017)