n = input() l = input() for i in range(n-1): for j in range(n-i-1): if l[j] > l[j+1]: tem = l[j] l[j] = l[j+1] l[j+1] = tem print(l)