Source: https://cemc.math.uwaterloo.ca/contests/past_contests/2011/2011EuclidResults.pdf