import scala.annotation.tailrec import scala.io.StdIn.* @main def main = val Array(height, width) = readLine().split(' ').map(_.toInt) val Array(ni, nj) = readLine().split(' ').map(_.toInt) val Array(zi, zj) = readLine().split(' ').map(_.toInt) println(if (ni + nj) % 2 != (zi + zj) % 2 then "Yes" else "No")