import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); int P = sc.nextInt(); int[] N = new int[P]; int[] K = new int[P]; for (int i=0; i