/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package yukicoder001_100; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; /** * * @author yuya */ public class No005 { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line1 = br.readLine(); String line2 = br.readLine(); String line3 = br.readLine(); int L = Integer.parseInt(line1); int N = Integer.parseInt(line2); String [] s = line3.split(" ",0); int n[] = new int[N]; for(int i=0;i