#include int main() { long long n, k, start; std::cin >> n >> k; if (n - 1 <= k) { std::cout << n - 1 << std::endl; long long num; std::cin >> num; return 0; } start = (n - 1) % (k + 1); std::cout << start << std::endl; while (true) { long long num; std::cin >> num; if (num >= n)break; std::cout << start + k + 1 << std::endl; start += k + 1; } return 0; }