{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"The forest swamp is divided into **8** * **8** identical cells. A frog sits in one of the cells, and a mosquito flies over some other cell. The frog wants to eat a mosquito, and the mosquito tries to fly away from it (avoiding death in the belly of a frog). The frog and the mosquito move in turn.\r\n\r\n![prb4895](https://static.e-olymp.com/content/d9/d91343f2c881d8d8fac78c2a3c67377d341af1c3.jpg)\r\n\r\nIn one jump, the frog moves horizontally or vertically to any non-zero number of cells. The mosquito in one flight moves to one of the **8** neighboring cells (horizontally, vertically or diagonally). If a frog jumps through a cell, over which there is a mosquito or jumps directly to this cell, then it eats the mosquito. The frog can move one square diagonally, if this way it eats the mosquito.\r\n\r\nMake a program that, given the initial position of the frog and the mosquito, will determine if the frog can eat a mosquito.\r\n\r\nA frog and a mosquito can not miss the moves (can not stay in place). The mosquito and the frog can be on the same cell, and if this happened in the frog move, then no move will lead to the mosquito being eaten.\r\n\r\n#### Input\r\nContains some (up to **1000**) tests. Each test is given in separate line and contains **5** numbers `X[L] Y[L] X[K] Y[K] M`, space separated. Here `X[L] Y[L]` is the starting frog\u0027s position, `X[K] Y[K]` is the starting mosquito\u0027s position, **M** means who makes first move: **0** - frog, **1** - mosquito.\r\n\r\nThe end of the tests is given by the number **0** in a separate line.\r\n\r\n#### Output\r\nPrint for each test the answer in a separate line. You should print **YES** if, under the optimal strategy of both, the frog will eat a mosquito, and **NO** otherwise."}},{"title":"Example","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e1 1 3 4 1 \n5 4 2 3 1\n3 4 1 1 0\n5 5 3 5 1\n2 3 5 2 0\n1 2 3 4 1\n4 5 6 8 1\n0\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eNO\nNO\nYES\nNO\nNO\nNO\nNO\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}