/* -*- coding: utf-8 -*- * * 2707.cc: No.2707 Bag of Words Encryption - yukicoder */ #include #include using namespace std; /* constant */ const int MAX_N = 100000; /* typedef */ /* global variables */ char s[MAX_N + 4]; int cs[26]; /* subroutines */ /* main */ int main() { int n; scanf("%d%s", &n, s); for (int i = 0; i < n; i++) cs[s[i] - 'A']++; for (int i = 0; i < 26; i++) printf("%d", cs[i]); putchar('\n'); return 0; }