#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1, x2, y1, y2, x, y, a, b;
  cin >> x1 >> y1 >> x >> y >> x2 >> y2;
  a = abs(x - x1);
  b = abs(y - y1);
  int ok = 0;
  if (a % x2 == 0 && b % y2 == 0) {
    int p = a / x2;
    int q = b / y2;
    int mn = min(p, q);
    p -= mn;
    q -= mn;
    if (p && p % 2 == 0) ok = 1;
    if (q && q % 2 == 0) ok = 1;
    if (p == 0 && q == 0) ok = 1;
  }
  if (ok)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
