#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1, x2, y1, y2, x, y;
  int r1, r2;
  cin >> x1 >> y1 >> x2 >> y2 >> x >> y;
  r1 = x2 - x1;
  r2 = y2 - y1;
  if (r1 % x || r2 % y) {
    cout << "NO";
    return 0;
  }
  if ((r1 / x + r2 / y) % 2) {
    cout << "NO";
    return 0;
  }
  cout << "YES";
  return 0;
}
