Phạm Quang Minh's submission of Good Pairs | CodeChef