try:
  fin = open("many.txt")
except:
  print("file not found")
  exit() # end the program NOW

# create the list
MAX_SCORES = 100
nScores = 0
score = [0 for i in range(MAX_SCORES)]    

# read and save the scores 
for lineFromFile in fin:
  aScore = int(lineFromFile.strip()) # read a score from the file 
  if nScores < MAX_SCORES:  # if list is not full...
    score[nScores] = aScore # ...add new score to list
    nScores += 1
fin.close()    

score[:nScores].sort() # sort first nScores elements of the array

# output scores in lo-to-hi order
for i in range(nScores):
  print(score[i], end = " ")
print()