#include #include #include #include #include #include #include #include #include using namespace atcoder; using namespace std; using ll = long long; #define Sort(a) sort((a).begin(), (a).end()) #define Rev(a) reverse((a).begin(), (a).end()) #define cfs(a) cout << fixed << setprecision(a) int main() { ll N; cin >> N; string S; cin >> S; vector alphabet(26); iota(alphabet.begin(), alphabet.end(), 'A'); map mp; for (int i = 0; i < 26; i++) { mp[alphabet[i]] = 0; } for (int i = 0; i < N; i++) { mp[S[i]]++; } for (ll i = 0; i < 26; i++) { cout << mp[alphabet[i]]; } cout << endl; }