#include using namespace std; int main() { string s; cin >> s; map cnt; for(auto c : s) cnt[c]++; string yeah = "YEAH!"; for(auto c : yeah) cout << cnt[c] << (c == '!' ? "\n" : " "); }