#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char* argv[]) {
  int x1, x2, y1, y2, dx, dy, px, py;
  cin >> x1 >> y1 >> x2 >> y2 >> px >> py;
  dx = abs(x2 - x1);
  dy = abs(y2 - y1);
  if (dx % px != 0 || dy % py != 0) {
    cout << "NO";
    exit(0);
  }
  int a = dx / px;
  int b = dy / py;
  if (a % 2 == b % 2) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}
