def get_input():
    while True:
        try:
            yield ''.join(raw_input())
        except EOFError:
            break

if __name__ == '__main__':
    l = map(int, list(get_input()))
    for elem in sorted(l)[:-4:-1]:
        print elem def get_input():
    while True:
        try:
            yield ''.join(raw_input())
        except EOFError:
            break get_input while True:
        try:
            yield ''.join(raw_input())
        except EOFError:
            break True try:
            yield ''.join(raw_input())
        except EOFError:
            break except EOFError:
            break break yield ''.join(raw_input()) ''.join(raw_input()) ''.join '' join raw_input() raw_input if __name__ == '__main__':
    l = map(int, list(get_input()))
    for elem in sorted(l)[:-4:-1]:
        print elem __name__ == '__main__' __name__ '__main__' l = map(int, list(get_input())) l map(int, list(get_input())) map int list(get_input()) list get_input() get_input for elem in sorted(l)[:-4:-1]:
        print elem elem sorted(l)[:-4:-1] (l) sorted l :-4:-1 -4 -1 print def get_input():
    while True:
        try:
            yield ''.join(raw_input())
        except EOFError:
            break def get_input():
    while True:
        try:
            yield ''.join(raw_input())
        except EOFError:
            break get_input l = map(int, list(get_input())) map(int, list(get_input())) l
def get_input():
    while True:
        try:
            yield ''.join(raw_input())
        except EOFError:
            break

if __name__ == '__main__':
    l = map(int, list(get_input()))
    for elem in sorted(l)[:-4:-1]:
        print elem