#include using namespace std; int main(){ int n; int x; int y; scanf("%d%d%d",&n,&x,&y); int la[n],lo[n],h[n],temp,val[n]; int i,j; for(i=0;ih[j]) { temp=h[i]; h[i]=h[j]; h[j]=temp; temp=val[i]; val[i]=val[j]; val[j]=temp; temp=la[i]; la[i]=la[j]; la[j]=temp; temp=lo[i]; lo[i]=lo[j]; lo[j]=temp; } } } int total=val[0]; for(i=0;i