#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k, l, j, i, x, y, c = 0;
  cin >> n >> m >> x >> y;
  k = abs(x - n);
  l = abs(y - m);
  cin >> i >> j;
  if (k % i == 0 and l % j == 0) {
    int g, h;
    g = k / i;
    h = l / j;
    if (g % 2 == h % 2)
      cout << "YES";
    else
      cout << "NO";
  } else {
    cout << "NO";
  }
}
