import sys

arr = []
for i in sys.stdin:
    arr.append(int(i))

arr.sort()
arr.reverse()
for i in range(3):
    print(arr[i]) import sys sys arr = [] arr [] for i in sys.stdin:
    arr.append(int(i)) i sys.stdin sys stdin arr.append(int(i)) arr.append arr append int(i) int i arr.sort() arr.sort arr sort arr.reverse() arr.reverse arr reverse for i in range(3):
    print(arr[i]) i range(3) range 3 print(arr[i]) print arr[i] arr i arr = [] [] arr
import sys

arr = []
for i in sys.stdin:
    arr.append(int(i))

arr.sort()
arr.reverse()
for i in range(3):
    print(arr[i])