All problems

Highlighting One Special Point

easyPythonMatplotlibScatter Plot

Meridian Insight benchmarks a client against its competitors. Every firm is a grey dot placed by two published measures, and the client's own dot is drawn bigger and in red so a reader finds it without hunting. The client is identified only by which row of the list it occupies. The caption under the picture repeats that firm's two measures as figures, so a reader who cannot judge a position by eye still has the numbers in front of them.

Task: Print the two measures belonging to the highlighted row, the across value first and the up value second.

Input

The first line holds an integer n, the number of firms. Each of the next n lines holds two numbers separated by a single space. The final line holds which row to highlight, counted from 0 — so 0 means the first firm listed.

Output

One line holding the two measures separated by a single space. Print each exactly as Python prints the number it read: a whole number read as a decimal comes out as 5.0, never as 5 and never as 5.00.

Example:

Input:
3
1 1
5 5
9 9
1

Output:
5.0 5.0

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…