import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String[] S = sc.next().split(""); Map YEAH = new HashMap<>(); for (String s : S) { if (!YEAH.containsKey(s)) YEAH.put(s, 0); YEAH.put(s, YEAH.get(s) + 1); } System.out.printf("%d %d %d %d %d\n", YEAH.get("Y"), YEAH.get("E"), YEAH.get("A"), YEAH.get("H"), YEAH.get("!")); } }