#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x1, y1, x2, y2, x, y;
  do {
    cin >> x1 >> y1 >> x2 >> y2 >> x >> y;
  } while ((x1 < -100000 or x1 > 100000) or (y1 < -100000 or y1 > 100000) or
           (x2 < -100000 or x2 > 100000) or (y2 < -100000 or y2 > 100000) or
           (x < 1 or x > 100000) or (x < 1 or y > 100000));
  if (((((x2 - x1) % x) == 0) and (((y2 - y1) % y) == 0)) and
      (((((x2 - x1) / x) + ((y2 - y1) / y)) % 2) == 0)) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
