#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long x1, y1, x2, y2, x, y;
  cin >> x1 >> y1 >> x2 >> y2 >> x >> y;
  if (abs(x1 - x2) % x == 0 && abs(y1 - y2) % y == 0) {
    long long xm = abs(x1 - x2) / x;
    long long ym = abs(y1 - y2) / y;
    if (xm % 2 == ym % 2)
      cout << "YES";
    else
      cout << "NO";
  } else
    cout << "NO";
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t = 1;
  while (t--) {
    solve();
  }
}
