#include using namespace std; int main() { string s; cin >> s; int y = 0, e = 0, a = 0, h = 0, ex = 0; for (int i = 0; i < s.size(); i++) { if (s[i] == 'Y') y++; else if (s[i] == 'E') e++; else if (s[i] == 'A') a++; else if (s[i] == 'H') h++; else ex++; } printf("%d %d %d %d %d\n", y, e, a, h, ex); return 0; }