import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String[] args) { new Main().run(); } void run() { Scanner sc = new Scanner(System.in); char[] s = { 'Y', 'E', 'A', 'H', '!' }; String o = sc.next(); int[] cnt = new int[s.length]; for (int i = 0; i < o.length(); ++i) { for (int j = 0; j < s.length; ++j) { if (s[j] == o.charAt(i)) { ++cnt[j]; } } } for (int i = 0; i < cnt.length; ++i) { System.out.print(cnt[i] + " "); } System.out.println(); } void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }