#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1, y1, x2, y2;
  cin >> x1 >> y1 >> x2 >> y2;
  int px, py;
  cin >> px >> py;
  int dx = abs(x1 - x2), dy = abs(y1 - y2);
  if (dx % px == 0 && dy % py == 0) {
    if ((dx / px) % 2 == (dy / py) % 2)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
