#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, x, y;
  cin >> a >> b >> c >> d >> x >> y;
  if (abs(a - c) % x == 0 && abs(b - d) % y == 0 && (abs(a - c) / x) % 2 == 0 &&
      (abs(b - d) / y) % 2 == 0)
    cout << "YES";
  else if (abs(a - c) % x == 0 && abs(b - d) % y == 0 &&
           (abs(a - c) / x) % 2 == 1 && (abs(b - d) / y) % 2 == 1)
    cout << "YES";
  else
    cout << "NO";
}
