#include<bits/stdc++.h>
using namespace std;
using ll=long long;

int main(){
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int N;
  cin>>N;
  char c;
  vector cnt(26,0);
  while(cin>>c){
    cnt[c-'A']+=1;
  }
  for(int i:cnt)cout<<i;
  cout<<'\n';
}