#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int q = 1;
  while (q--) {
    long long int x1, y1, x2, y2, x, y;
    cin >> x1 >> y1 >> x2 >> y2 >> x >> y;
    long long int m = llabs(x2 - x1);
    long long int n = llabs(y2 - y1);
    bool done = true;
    if (m % x != 0 or n % y != 0) {
      done = false;
    }
    if ((m / x) % 2 != (n / y) % 2) {
      done = false;
    }
    cout << (done ? "YES\n" : "NO\n");
  }
}
