#include using namespace std; using ll = long long; template using vec = vector; template using vvec = vector>; using P = pair; int main(){ cin.tie(0); ios::sync_with_stdio(false); int N,D; cin >> N >> D; vec

A(N); for(int i=0;i> a; A[i] = {a,i}; } sort(A.rbegin(),A.rend()); vec ans(N); int r = 0; for(int l=0;l