s=input();print(*[s.count(i) for i in"YEAH!"])