# Python 3+
#-------------------------------------------------------------------------------
import sys

#ff = open("test.txt", "r")
ff = sys.stdin

arr = [ int(x) for x in ff.readlines() ]

arr.sort(reverse=True)

for x in arr[0:3] : print(x) import sys sys ff = sys.stdin ff sys.stdin sys stdin int(x) for x in ff.readlines() for x in ff.readlines() x ff.readlines() ff.readlines ff readlines for x in ff.readlines() int(x) int x arr = [ int(x) for x in ff.readlines() ] arr [ int(x) for x in ff.readlines() ] arr.sort(reverse=True) arr.sort arr sort reverse=True reverse True for x in arr[0:3] : print(x) x arr[0:3] arr 0:3 0 3 ff = sys.stdin sys.stdin ff arr = [ int(x) for x in ff.readlines() ] [ int(x) for x in ff.readlines() ] arr
# Python 3+
#-------------------------------------------------------------------------------
import sys

#ff = open("test.txt", "r")
ff = sys.stdin

arr = [ int(x) for x in ff.readlines() ]

arr.sort(reverse=True)

for x in arr[0:3] : print(x)