#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, h, i, j, t, m, l, r, q;
  long long p = 0, k, w, z, x, y, d;
  string s = "", st = "", s1 = "", s2 = "";
  q = 1;
  for (l = 0; l < q; l++) {
    int x1, y1, x2, y2;
    std::cin >> x1 >> y1 >> x2 >> y2 >> x >> y;
    p = x2 - x1;
    h = y2 - y1;
    z = 0;
    if (p % x == 0 && h % y == 0) {
      if (p / x == h / y)
        z = 1;
      else {
        p = p / x;
        h = h / y;
        d = abs(p - h);
        if (d % 2 == 0) z = 1;
      }
    }
    if (z == 0)
      std::cout << "NO" << std::endl;
    else
      std::cout << "YES" << std::endl;
  }
  return 0;
}
