#include using namespace std; typedef long long ll; typedef pair P; typedef vector

VP; typedef vector VI; typedef vector VVI; #define REP(i, n) for (ll i = 0; i < (n); i++) #define ALL(v) v.begin(), v.end() #define OUT(n) cout << n << "\n" // constexpr ll MOD=998244353; // constexpr ll MOD=1000000007; // constexpr ll INF=2e18; int main() { ios::sync_with_stdio(false); cin.tie(0); ll N; string S; cin >> N >> S; VI cnt(26); REP(i, N) { cnt[S[i] - 'A']++; } string ans = ""; REP(i, 26) { ans += to_string(cnt[i]); } OUT(ans); }