Part of 2017 Singapore Junior Math Olympiad
Source: Singapore Junior Math Olympiad 2017 2nd Round p4 SMO