#include <bits/stdc++.h>
using namespace std;
void test_case() {
  long long x1, x2, y1, y2;
  cin >> x1 >> x2 >> y1 >> y2;
  long long a, b;
  cin >> a >> b;
  long long t1 = abs(x1 - y1);
  long long t2 = abs(x2 - y2);
  if (t1 % a == 0 && t2 % b == 0) {
    long long val = t1 / a - t2 / b;
    if (abs(val) % 2 == 0) {
      cout << "YES"
           << "\n";
      ;
      return;
    }
  }
  cout << "NO"
       << "\n";
  ;
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout << fixed << setprecision(10);
  long long t = 1;
  while (t--) {
    test_case();
  }
}
