#include <bits/stdc++.h>
using namespace std;
using cd = complex<double>;
const double pi = acos(-1);
vector<long long> ft(1, 1LL);
void solve() {
  long long x1, x2, y1, y2, a, b;
  cin >> x1 >> y1 >> x2 >> y2 >> a >> b;
  long long dx = abs(x1 - x2), dy = abs(y1 - y2);
  if (dx % a == 0 and dy % b == 0 and (abs(dx / a - dy / b)) % 2 == 0)
    cout << "YES\n";
  else
    cout << "NO\n";
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t = 1;
  while (t--) {
    solve();
  }
}
