using System.Collections.Generic; using System.Linq; using System; public class Hello { static void Main() { var n = int.Parse(Console.ReadLine().Trim()); getAns(n); } static void getAns(int n) { var d = new Dictionary(); for (int i = 0; i < n; i++) { string[] line = Console.ReadLine().Trim().Split(' '); d[line[0]] = int.Parse(line[1]); } var ans = new int[7]; foreach (var x in d.Values) ans[x]++; Console.WriteLine(string.Join("\n", ans)); } }