#include <bits/stdc++.h>
using namespace std;
void faster() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
const int MAXN = 2e5;
const long long MOD = 1e9 + 7;
const long long INF = 1e9;
long long x[2], y[2], a, b;
int main() {
  faster();
  for (int i = 0; i < 2; ++i) {
    cin >> x[i] >> y[i];
  }
  cin >> a >> b;
  x[1] -= x[0];
  y[1] -= y[0];
  x[1] = abs(x[1]);
  y[1] = abs(y[1]);
  if ((x[1] % a) == 0 && (y[1] % b) == 0 &&
      ((x[1] / a) + (y[1] / b)) % 2 == 0) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
