S = input() print(*[S.count(t) for t in "YEAH!"])