-
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s = scanner.next(); // 알파벳 26개 int[] arr = new int[26]; // for (int i = 0; i < s.length(); i++) { int a = s.charAt(i)-97; arr[a]++; } // 출력 for (int i = 0; i < arr.length; i++) { System.out.print(arr[i] + " "); } } }