#include #include #include using namespace std; #define ll __int64 struct node { ll val,y; }a[5000]; ll b[5000]; int cmp(node a,node b) { return a.val