import java.util.Scanner; import java.util.TreeMap; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int[] A = new int[N]; for(int i=0;i map = new TreeMap<>(); int r = 0; int[] ans = new int[N+1]; for(int l=0;l=M){ ans[r-l-1]++; ans[N-l]--; } if(A[l]a+b==0?null:a+b); } StringBuilder sb = new StringBuilder(); for(int i=0;i