You are a traveller, lost in a jungle.But you have the Map with you.And you remember the route you travelled so you will backtrack and reach the Starting point. Your task is to print the starting point.
First line consists of T test cases. Each test cases consists of 3 lines.
First line of each test case consist of two integers X,Y denoting of Your Current location.
Second line of each test case consist of an integer N denoting of number of paths you travelled.
Third line of each test case consist of 2*N spaced integers Xi,Yj denoting the points at the paths you travelled.
Print the Starting point in respective line.
1 0 0 1
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.