#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int x1, x2, y1, y2;
  cin >> x1 >> y1 >> x2 >> y2;
  int x, y;
  cin >> x >> y;
  int t1, t2;
  t1 = abs(x1 - x2) / x;
  if (abs(x1 - x2) % x != 0) {
    cout << "NO" << endl;
    return 0;
  }
  t2 = abs(y1 - y2) / y;
  if (abs(y1 - y2) % y != 0) {
    cout << "NO" << endl;
    return 0;
  }
  if (t1 > t2) swap(t1, t2);
  if ((t2 - t1) % 2 == 0)
    cout << "YES" << endl;
  else
    cout << "NO";
  return 0;
}
