#include #include #include #include using namespace std; typedef struct { char v[100]; int x, y; }el; el a[10]; int f(el a, el b) { if(a.y>b.y) return 1; if(a.yb.x) return 1; if(a.x=48&&s[q+1]<=57){h1=s[q+1]-'0'; h=h*10+h1; q++;} q+=2; k=s[q]-'0'; if(s[q+1]>=48&&s[q+1]<=57){h1=s[q+1]-'0'; k=k*10+h1;} ok1=0; ok2=0; if(h>k) l=1; if(h==k) l=0; if(h