#include using namespace std; typedef long long ll; #define REP(i,n) FOR(i,0,n) #define FOR(i,a,b) for(ll i=a;i vi; typedef vector> vvi; const ll INF = (1ll << 30); typedef pair pii; typedef vector> Graph; typedef vector vpii; int main() { ll N,D,K; cin>>N>>D>>K; vi x(N); REP(i,N) cin>>x[i]; multiset S; ll ans=0; pii ansp; REP(i,D) { if(S.begin()!=S.end()) { if(ans