#include <bits/stdc++.h>
using namespace std;
long long absval(long long a) { return a > 0 ? a : -a; }
int main() {
  ios_base::sync_with_stdio(false);
  long long x, y, x1, x2, y1, y2;
  cin >> x1 >> y1 >> x2 >> y2 >> x >> y;
  if (absval(x1 - x2) % x == 0 && absval(y1 - y2) % y == 0 &&
      absval((absval(x2 - x1) / x) - (absval(y1 - y2) / y)) % 2 == 0) {
    cout << "YES\n";
  } else
    cout << "NO\n";
  return 0;
}
