package yukicoder; import java.util.Scanner; public class N564 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int hh=sc.nextInt(),N=sc.nextInt(); int[] h=new int[N]; h[0]=hh; int cnt=1; for(int i=1;i