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