#include using namespace std; typedef long long ll; #define in(T,V) T V;cin>>V; int main(){ int n,k,v; cin>>n>>k; for(ll i = (n-1)%(k+1); i <= n-1; i += k+1){ cout << i << endl; cin >> v; if(v >= n) break; } }