import java.util.*; public class Main { static class snow{ int x,y,unko; public snow(int x,int y,int unko) { // TODO Auto-generated constructor stub this.x = x; this.y = y; this.unko = unko; } } static long gcd(long a,long b){ return b == 0 ? a : gcd(b, a%b); } static long lcm(long a, long b){ return a*b/gcd(a, b); } static int[] dx = {1,0,-1,0}; static int[] dy = {0,1,0,-1}; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); int a = sc.nextInt(); int sx = sc.nextInt(); int sy = sc.nextInt(); int b = sc.nextInt(); int gx = sc.nextInt(); int gy = sc.nextInt(); boolean[][] map = new boolean[x][y]; for(int i=0;i queue = new LinkedList<>(); queue.add(new snow(sx, sy, a)); int count = 0; while(!queue.isEmpty()){ snow now = queue.poll(); count++; if(count>3000000) break; if(now.x == gx && now.y == gy && now.unko == b){ System.out.println("Yes"); return; } for(int i=0;i<4;i++){ int nextx = now.x+dx[i]; int nexty = now.y+dy[i]; if(nextx>=0 &&nextx=0 && nexty