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