# coding: utf-8
"""
aizu 0001
"""

import sys

# @profile
def main():
    mountaines=[]
    for line in sys.stdin:
        mountaines.append(int( line ))
    mountaines.sort(reverse=True)
    for index,x in enumerate( mountaines ):
        print x
        if index >=2:
            break
if __name__ == '__main__':
    main() """
aizu 0001
""" import sys sys def main():
    mountaines=[]
    for line in sys.stdin:
        mountaines.append(int( line ))
    mountaines.sort(reverse=True)
    for index,x in enumerate( mountaines ):
        print x
        if index >=2:
            break main mountaines=[] mountaines [] for line in sys.stdin:
        mountaines.append(int( line ))
     line sys.stdin sys stdin mountaines.append(int( line )) mountaines.append mountaines append int( line ) int line mountaines.sort(reverse=True) mountaines.sort mountaines sort reverse=True reverse True for index,x in enumerate( mountaines ):
        print x
        if index >=2:
            break index x enumerate( mountaines ) enumerate mountaines print if index >=2:
            break index >=2 index 2 break if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    mountaines=[]
    for line in sys.stdin:
        mountaines.append(int( line ))
    mountaines.sort(reverse=True)
    for index,x in enumerate( mountaines ):
        print x
        if index >=2:
            break def main():
    mountaines=[]
    for line in sys.stdin:
        mountaines.append(int( line ))
    mountaines.sort(reverse=True)
    for index,x in enumerate( mountaines ):
        print x
        if index >=2:
            break main
# coding: utf-8
"""
aizu 0001
"""

import sys

# @profile
def main():
    mountaines=[]
    for line in sys.stdin:
        mountaines.append(int( line ))
    mountaines.sort(reverse=True)
    for index,x in enumerate( mountaines ):
        print x
        if index >=2:
            break
if __name__ == '__main__':
    main()