Median Person
// CONDITIONAL_SORTProblem Statement
Three students each took an exam and received a score. Every score is a different integer, so exactly one student scored higher than exactly one other and lower than the remaining one — that student's score is the median: it is neither the highest nor the lowest of the three.
Given the three students' names and their scores, determine the name of the student who scored the median.
Input Format
Line 1: Three names separated by single spaces (lowercase English letters).
Line 2: Three integers separated by single spaces (scores between 0 and 100, pairwise distinct).
Output Format
Print a single line containing the name of the student whose score is the median of the three.
Sample Testcases
ann bob cid 5 2 8
ann
x y z 8 5 2
y