import java.util.*; import java.io.*; public class Main { static int mod=1000003; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int x=Integer.parseInt(st.nextToken()); int n=Integer.parseInt(st.nextToken()); int[] a=new int[n]; st=new StringTokenizer(br.readLine()); for(int i=0;i