import sys data = [line for line in sys.stdin] data.sort() for line in data: sys.stdout.write(line)