import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); StringBuilder ikezaki = new StringBuilder(); while(sc.hasNext()){ ikezaki.append(sc.next()); } Map YEAH = new LinkedHashMap<>(); YEAH.put('Y',0); YEAH.put('E',0); YEAH.put('A',0); YEAH.put('H',0); YEAH.put('!',0); for(int i = 0 ; i < ikezaki.length() ; i++){ char c = ikezaki.charAt(i); YEAH.put(c , YEAH.get(c) + 1); } for(Map.Entry entry : YEAH.entrySet()){ System.out.print(entry.getValue()+" "); } System.out.println(); //ピーナッツ! } }