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