#include <bits/stdc++.h>
using namespace std;
int abss(int a) { return a > 0 ? a : -a; }
int main(void) {
  int a, b, c, d, x, y;
  cin >> a >> b >> c >> d >> x >> y;
  if (abss(c - a) % x || abss(d - b) % y) {
    cout << "NO";
    return 0;
  }
  int l = abss(c - a) / x, r = abss(d - b) / y;
  if (l % 2 == r % 2) {
    cout << "YES";
    return 0;
  }
  cout << "NO";
}
