#include <bits/stdc++.h>
using namespace std;
int main() {
  long x1, y1, x2, y2, x, y;
  cin >> x1 >> y1 >> x2 >> y2;
  cin >> x >> y;
  if (abs(x1 - x2) % x != 0 || abs(y1 - y2) % y != 0 ||
      abs(x1 - x2) % x != abs(y1 - y2) % y ||
      (abs(x1 - x2) / x) % 2 != (abs(y1 - y2) / y) % 2) {
    cout << "NO";
  } else {
    cout << "YES";
  }
}
