import java.util.*; public class Yukicoder_79{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int N = stdIn.nextInt(); int[] judg = new int[7]; for(int i=0;i