using static System.Math; using System; public class Hello { static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var h = long.Parse(line[0]); var w = long.Parse(line[1]); line = Console.ReadLine().Trim().Split(' '); var ni = long.Parse(line[0]); var nj = long.Parse(line[1]); line = Console.ReadLine().Trim().Split(' '); var zi = long.Parse(line[0]); var zj = long.Parse(line[1]); var mh = Abs(zi - ni) + Abs(zj - nj); Console.WriteLine(mh % 2 == 0 ? "No" : "Yes"); } }