import java.net.NetworkInterface; import java.util.*; import javax.swing.event.AncestorEvent; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int now = (n-1)%(k+1); System.out.println( now ); while(true){ int a = sc.nextInt(); if(a>=n) break; now+=k+1; System.out.println(now); } } }