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