# open 8Scores.txt for input
fileName = "8Scores.txt"
try:
  fin = open(fileName)
except:
  print(fileName, "not found")
  exit() # end the program NOW

# read and save the scores
score = [0 for i in range(8)]
for i in range(len(score)):
  score[i] = int(fin.readline().strip()) 
fin.close()

score.sort()

# output the sorted scores
for i in range(len(score)):
  print(score[i], end = " ")
print()