import java.util.*; public class Test4 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int n = sc.nextInt(); List ar = new ArrayList(); ar.add(0, h); for (int i=1; i