#include using namespace std; using ll = long long; #define rep(i, n) for(int i = 0; i < n; i++) int main() { int N; string s; cin >> N >> s; vector c(26); rep(i, N) { int n = s[i] - 'A'; c[n]++; } string ans; rep(i, 26) { string w = to_string(c[i]); ans += w; } cout << ans << endl; }