#include #include #include #include using namespace std; const int MAX_N = 1e5+5; struct Dir{ Dir(int x,int y):x(x),y(y){} int x,y; friend ostream& operator<<(ostream &os,Dir d){ os<<"Dir { x="<