#include <bits/stdc++.h>
using namespace std;
int X1, Y1;
int X2, Y2;
int X, Y;
int main() {
  cin >> X1 >> Y1;
  cin >> X2 >> Y2;
  cin >> X >> Y;
  if ((abs(X1 - X2) % X == 0) && (abs(Y1 - Y2) % Y == 0) &&
      (abs(X1 - X2) / X) % 2 == (abs(Y1 - Y2) / Y) % 2)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
