import java.util.Scanner; public class Ikezaki { public static void main(String[] args) { Scanner s = new Scanner(System.in); StringBuilder str = new StringBuilder(s.nextLine()); s.close(); int[] c = new int[5]; while(str.length() != 0){ char t = str.charAt(0); if(t == 'Y'){ c[0]++; }else if(t == 'E'){ c[1]++; }else if(t == 'A'){ c[2]++; }else if(t == 'H'){ c[3]++; }else{ c[4]++; } str.deleteCharAt(0); } for(int a:c){ System.out.print(a + " "); } System.out.println(); } }