from yogi import *

m, n = scan(int), scan(int)
while m is not None and n is not None:
    v = [read(float) for i in range(0, n)]
    selection_sort(v, m)
    for i in range(0, n):
        print(" {0:.4f}".format(v[i]), end='')
    print()
    m, n = scan(int), scan(int)
