#include using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); int N; string S; cin >> N >> S; vector c(26); for (auto x : S) c[x-'A']++; for (auto x : c) cout << x; cout << endl; return 0; }