# -*- coding: utf-8 -*-

import sys

def top_k_sort(data, k=3, reverse=True):
    data.sort(reverse=True)
    return data[:k]

def main():
    data = []
    for line in sys.stdin:
        data.append(int(line))

    for h in top_k_sort(data):
        print(h)

if __name__ == '__main__':
    main() import sys sys def top_k_sort(data, k=3, reverse=True):
    data.sort(reverse=True)
    return data[:k] top_k_sort data.sort(reverse=True) data.sort data sort reverse=True reverse True return data[:k] data[:k] data :k k data data k=3 k 3 reverse=True reverse True def main():
    data = []
    for line in sys.stdin:
        data.append(int(line))

    for h in top_k_sort(data):
        print(h) main data = [] data [] for line in sys.stdin:
        data.append(int(line))

     line sys.stdin sys stdin data.append(int(line)) data.append data append int(line) int line for h in top_k_sort(data):
        print(h) h top_k_sort(data) top_k_sort data print(h) print h if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    data = []
    for line in sys.stdin:
        data.append(int(line))

    for h in top_k_sort(data):
        print(h) def main():
    data = []
    for line in sys.stdin:
        data.append(int(line))

    for h in top_k_sort(data):
        print(h) main def top_k_sort(data, k=3, reverse=True):
    data.sort(reverse=True)
    return data[:k] def top_k_sort(data, k=3, reverse=True):
    data.sort(reverse=True)
    return data[:k] top_k_sort
# -*- coding: utf-8 -*-

import sys

def top_k_sort(data, k=3, reverse=True):
    data.sort(reverse=True)
    return data[:k]

def main():
    data = []
    for line in sys.stdin:
        data.append(int(line))

    for h in top_k_sort(data):
        print(h)

if __name__ == '__main__':
    main()