// // Created by Owner on 2015/08/01. // #include using namespace std; int main(){ int N, K; cin >> N >> K; K++; int A = (N-1)/K; int out_num = N - 1 - A * K, cpu_num = 0; while(true){ cout << out_num<< endl; out_num += K; int tmp; cin >> tmp; if(tmp >= N){ break; } } return 0; }