n = input(''); line = []; for i = 1:n-1 line = [line, input('', 's'), ' ']; end line = [line, input('', 's')]; temp = strsplit(line); result = sort(temp); for i = 1:n fprintf('%s\n', char(result(i))); end