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