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