#include <bits/stdc++.h>
int main(void) {
  int x1, y1, x2, y2;
  std::cin >> x1 >> y1 >> x2 >> y2;
  int x, y;
  bool flag = true;
  std::cin >> x >> y;
  int minx = std::min(x1, x2);
  int maxx = std::max(x1, x2);
  int contx = 0;
  while (minx < maxx) {
    minx += x;
    contx++;
  }
  if (minx != maxx) flag = false;
  int miny = std::min(y1, y2);
  int maxy = std::max(y1, y2);
  int conty = 0;
  while (miny < maxy) {
    miny += y;
    conty++;
  }
  if (miny != maxy) flag = false;
  int cont = contx + conty;
  if (cont % 2 == 1) flag = false;
  if (flag == true)
    std::cout << "YES\n";
  else
    std::cout << "NO\n";
  return 0;
}
