import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String str = scan.nextLine(); int[] countList = {0,0,0,0,0}; for(int i = 0 ; i < str.length() ; i++ ){ switch(str.charAt(i)){ case 'Y': countList[0]++; break; case 'E': countList[1]++; break; case 'A': countList[2]++; break; case 'H': countList[3]++; break; case '!': countList[4]++; break; } } for(int count:countList){ System.out.print(count + " "); } System.out.println(""); } }