#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x1, x2, x3, x4;
  cin >> x1 >> x2 >> x3 >> x4;
  long long x, y;
  cin >> x >> y;
  if (abs(x1 - x3) % x == 0 && abs(x2 - x4) % y == 0 &&
      (abs(x1 - x3) / x) % 2 == (abs(x2 - x4) / y) % 2) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
