struct Node { int d, e; bool operator < (const Node x) const { return x.d < d; } Node(int d, int e):d(d), e(e){} };