#include #include using namespace std; int main() { int n, k; cin >> n >> k; int win_num = (n - 1) % (k + 1); int now; if (win_num == 0) { now = 0; } else { now = win_num; } cout << now << endl; int his; while (now <= n) { cin >> his; if (his >= n) { break; } now += k + 1; cout << now << endl; } cout << flush; return 0; }