import sys def solve(): # Read the input string from standard input s = sys.stdin.readline().strip() # Count the occurrences of each character count_y = s.count('Y') count_e = s.count('E') count_a = s.count('A') count_h = s.count('H') count_exclamation = s.count('!') # Prepare the output string with counts separated by spaces # Using an f-string for easy formatting output_string = f"{count_y} {count_e} {count_a} {count_h} {count_exclamation}" # Print the result followed by a newline (print naturally adds a newline) print(output_string) # Call the function to execute the logic solve()