Codeforces Beta Round 2


A. Winner
time limit per test: 1 second
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
3
mike 3
andrew 5
mike 2
Output
andrew
Input
3
andrew 3
andrew 2
mike 5
Output
andrew
----------------------------------------------------------------------------------------------------
B. The least round way
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
3
1 2 3
4 5 6
7 8 9
Output
0
DDRR
----------------------------------------------------------------------------------------------------
C. Commentator problem
time limit per test: 1 second
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
0 0 10
60 0 10
30 30 10
Output
30.00000 0.00000
----------------------------------------------------------------------------------------------------
