import java.util.*; import java.io.*; class Main{ private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); private static final PrintWriter out = new PrintWriter(System.out); public static void main(String[] args)throws IOException{ String[] str = br.readLine().split(" "); int N = Integer.parseInt(str[0]); int M = Integer.parseInt(str[1]); str = br.readLine().split(" "); int[] A = new int[N]; for(int i=0;i map = new HashMap<>(); long now = A[0]; map.put(0L,(long)C[0]); for(int i=1;i