#include #include #include #include #define M 100005 using namespace std; struct node { int a1,a2,a3,a4; } s1[M],s2[M],s3[M]; bool cmp(node a,node b) { if(a.a1!=b.a1) return a.a1