#include using namespace std; typedef long long LL; struct cww{cww(){ ios::sync_with_stdio(false);cin.tie(0); }}star; #define fin "\n" #define FOR(i,bg,ed) for(int i=(bg);i<(ed);i++) #define REP(i,n) FOR(i,0,n) #define fi first #define se second #define pb push_back #define DEBUG if(0) template inline void chmin(T &l,T r){l=min(l,r);} template inline void chmax(T &l,T r){l=max(l,r);} template istream& operator>>(istream &is,vector &v){ for(auto &it:v)is>>it; return is; } int deq[2123456]; int main(){ LL N,D,K; cin>>N>>D>>K; vector x(N); cin>>x; using T=tuple; T res=T(0,0,0); int s=0,t=0; REP(i,N){ while(sD)s++; while(sx[i])t--; deq[t++]=i; chmin(res,T(x[deq[s]]-x[i],deq[s],i)); } LL val; tie(val,s,t)=res; cout<