import sys readline=sys.stdin.readline write=sys.stdout.write S=readline().rstrip() print(*[S.count(s) for s in "YEAH!"])