import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class No564 { public static void main(String[] args) { Scanner s = new Scanner(System.in); ArrayList list = new ArrayList<>(); int H = s.nextInt(); int N = s.nextInt(); list.add(H); for(int i=1;i