#include using namespace std; #define rep(i,a,b) for(int i=(int)(a);i<(int)(b);i++) #define ALL(v) (v).begin(),(v).end() using ll=long long int; const int inf = 0x3fffffff; const ll INF = 0x1fffffffffffffff; const double eps=1e-12; templateinline bool chmax(T& a,T b){if(ainline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;} int main(){ int h,w; cin>>h>>w; int x1,y1,x2,y2; cin>>x1>>y1>>x2>>y2; if((x1+y1+x2+y2)&1)puts("Yes"); else puts("No"); return 0; }