SEAGRP input sample

can anyone tell me what will the output be
1
4 3
1 1
1 2
3 4

Please do not discuss questions or test cases related to ongoing contest now.