import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String[] args) { BufferedReader stdReader =new BufferedReader(new InputStreamReader(System.in)); try { int B = Integer.parseInt(stdReader.readLine()); int N = Integer.parseInt(stdReader.readLine()); int[] num = new int[N]; long sum = B; for(int i=0;i