#include #include #include #include #include #define REP(i, n) for (ll i = 0; i < n; i++) #define REP1(i, n) for (ll i = 1; i <= n; i++) #define RREP(i, n) for (ll i = n - 1; i >= 0; i--) #define RREP1(i, n) for (ll i = n; i >= 1; i--) #define FOR(i, a, b, c) for (ll i = a; i <= b; i += c) #define RFOR(i, a, b, c) for (ll i = a; i >= b; i -= c) #define MAX(a, b) (a > b ? a : b) #define MIN(a, b) (a < b ? a : b) #define INF 1145141919 typedef long long ll; int main() { char c; int cnt[5] = {}; while ((c = getchar()) != '\n') { if (c == 'Y') cnt[0]++; if (c == 'E') cnt[1]++; if (c == 'A') cnt[2]++; if (c == 'H') cnt[3]++; if (c == '!') cnt[4]++; } REP(i, 5) printf("%d ", cnt[i]); return 0; }