Welcome to ZOJ
Select Problem
ZOJ Problem Set - 1868
Airline Hub

Time Limit: 2 Seconds      Memory Limit: 65536 KB

World Wide Flyer has landing rights at several airports throughout the world. They wish to place their central hub at the airport that minimizes the maximum direct flying distance from the hub to any other airport in the world.


Input consists of a line containing n <= 1000, the number of airports. n lines follow, each giving the latitude (between -90 and +90 degrees) and longitude (between -180 and +180 degrees) of an airport.

Input contains multiple test cases. Process to the end of file.


To two decimal places, give the latitude and longitude of the airport that best serves as a hub. If there are several, choose the first one.

Sample Input

3.2 -15.0
20.1 -175
-30.2 10

Sample Output

3.20 -15.00

Source: University of Waterloo Local Contest 2000.01.29
Submit    Status