CF817A Treasure Hunt

题目描述

Bill船长收到一个有趣的挑战,有一些陌生人给了他一张地图和一些能够远程传送的药水………… 简单而言,给你移动方式,让你判断能否从(x1,y1)的位置移动到(x2,y2)的位置 而移动方式如下:输入x,y,你一共有四种移动方式可选择 ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF817A/5f61670d9b3608116440491f8884c7a41d992eb9.png) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF817A/fdee4e4bb66766e4b40f483072f3c9b0b1880af7.png) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF817A/7517913342c0c19a2f0627ccf2eab647a7b547bf.png) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF817A/324d1b3af2d1a5e602e1cfc99403662780a262b3.png)

输入格式

第一行输入x1,y1,x2,y2第二行输入x,y

输出格式

如果可以,输出YES,如果不行,输出NO

说明/提示

In the first example there exists such sequence of moves: 1. ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF817A/c2f8ba5eda46198f6f7d9cfa4c6117bc7fc558f4.png) — the first type of move 2. ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF817A/4cacb8ebe23d1fb4e06418cad36d9e8cacd3f8c8.png) — the third type of move