Marcin's submission of Pairs of Pairs | CodeChef