import java.util.Scanner; public class N194 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int N=sc.nextInt(); int K=sc.nextInt(); int[] A=new int[N+1]; int[] F=new int[K+1]; for(int i=1;i