MathDB

Problem 1

Part of 2017 Pakistan TST