#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int x1, y1, x2, y2, a, b;
  cin >> x1 >> y1 >> x2 >> y2 >> a >> b;
  float x, y;
  x = fabs((x2 - x1)) / a;
  y = fabs((y2 - y1)) / b;
  int p, q;
  p = x;
  q = y;
  if (x == p && y == q) {
    if ((p == q) || ((p - q) % 2 == 0)) {
      cout << "YES";
    } else {
      cout << "NO";
    }
  } else {
    cout << "NO";
  }
}
