#include #include using namespace std; struct _b { int x; int y; int s[2]; char d[2]; } b[1005]; int N; struct _z { short x; short y; int b; bool operator<(const _z& b) const { return y