LearnPy Hub
← NumPy problems
Hard

Top Three Students

Read names on one line and their scores on the next. Using np.argsort, print the names of the top 3 scorers (highest first; ties: earlier name first).

Input

Two lines.

Output

One line.

Sample 1

Input
Mim Rafi Sara Tuhin Nadia
88 92 79 95 92
Output
Tuhin Rafi Nadia

Sample 2

Input
A B C
1 2 3
Output
C B A
solution.py
Output appears here
Top Three Students · Python practice problem · LearnPy Hub