package yukicoder; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; public class YukiCoderNo5 { public static void main(String[] args) { // TODO Auto-generated method stub // Read Input BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ // Read 1st line int L = Integer.parseInt(br.readLine()); // Read 2nd line int N = Integer.parseInt(br.readLine()); // Read 3rd line to ArrayList String s[] = br.readLine().split(" "); ArrayList list = new ArrayList(); for( int i=0; i