import sys
print('\n'.join(map(str, sorted([int(h.strip()) for h in sys.stdin], reverse=True)[:3]))) import sys sys int(h.strip()) for h in sys.stdin for h in sys.stdin h sys.stdin sys stdin for h in sys.stdin int(h.strip()) int h.strip() h.strip h strip print('\n'.join(map(str, sorted([int(h.strip()) for h in sys.stdin], reverse=True)[:3]))) print '\n'.join(map(str, sorted([int(h.strip()) for h in sys.stdin], reverse=True)[:3])) '\n'.join '\n' join map(str, sorted([int(h.strip()) for h in sys.stdin], reverse=True)[:3]) map str sorted([int(h.strip()) for h in sys.stdin], reverse=True)[:3] ([int(h.strip()) for h in sys.stdin], reverse=True) sorted [int(h.strip()) for h in sys.stdin] reverse=True reverse True :3 3
import sys
print('\n'.join(map(str, sorted([int(h.strip()) for h in sys.stdin], reverse=True)[:3])))