Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

C24E08AE - EC08A The Sheep of the Wizard (E)

XY, the great wizard has a flock of sheep. These sheep are of a quite calm type, they do not wander all about the place like normal sheep do, they just stay where they are, each at a given point on the plane. Nevertheless the sheep have to be watched. Until now, the wizard looked after them himself, as he was pleased to count them again and again and enjoyed seeing how rich he was.

But now, he kind of got bored of counting sheep. He decided to use his magic powers to turn one of his sheep into a shepherd. Your task is to choose the right sheep for him, unless you want to make him mad, and be turned into a sheep – or something much worse – yourself. Given the coordinates of the sheep, you have to find one that if turned into shepherd can watch all the others with the least eye movement. That is, find the one sheep from which the rest of the flock is seen in the smallest angle.

Input:

The first line contains a single integer, N the number of sheep specification lines. The following N lines contain the X and Y coordinates of the sheep separated by spaces.

Output:

Two integers, X and Y , separated by a space, that are the coordinates of the best sheep.

This is the electronic variant of the problem. Read more here about submitting solutions!

Example

Input:
3
0 0
1 1
10 0

Output:
10 0
	

Added by:Jacek DÄ…browski
Date:2009-01-26
Time limit:0.200s-2s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:ADA95 ASM32 BASH BF C CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON RUBY SCM guile SCM qobi ST TEXT WHITESPACE
Resource:Challenge 24 2008 Electronic Contest

hide comments
2009-02-24 16:03:53 Zohaib Khalid
test comment
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.