print("\n".join(map(str,sorted([int(input())for _ in[0]*10])[:-4:-1]))) int(input())for _ in[0]*10 for _ in[0]*10 _ [0]*10 [0] 0 10 for _ in[0]*10 int(input()) int input() input print("\n".join(map(str,sorted([int(input())for _ in[0]*10])[:-4:-1]))) print "\n".join(map(str,sorted([int(input())for _ in[0]*10])[:-4:-1])) "\n".join "\n" join map(str,sorted([int(input())for _ in[0]*10])[:-4:-1]) map str sorted([int(input())for _ in[0]*10])[:-4:-1] ([int(input())for _ in[0]*10]) sorted [int(input())for _ in[0]*10] :-4:-1 -4 -1
print("\n".join(map(str,sorted([int(input())for _ in[0]*10])[:-4:-1])))