local n = io.read("*n", "*l") local s = io.read() local t = {} for i = 1, 26 do t[i] = 0 end for i = 1, n do local z = s:byte(i) - 64 t[z] = t[z] + 1 end print(table.concat(t))