/* -*- coding: utf-8 -*- * * 1714.cc: No.1714 Tag on Grid - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ /* typedef */ /* global variables */ /* subroutines */ /* main */ int main() { int h, w, y0, x0, y1, x1; scanf("%d%d%d%d%d%d", &h, &w, &y0, &x0, &y1, &x1); int d = (abs(y1 - y0) + abs(x1 - x0)) & 1; if (d) puts("Yes"); else puts("No"); return 0; }