#include <bits/stdc++.h>
using namespace std;
template <typename T>
T gcd(T a, T b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
template <typename T>
T pow(T a, T b, long long m) {
  T ans = 1;
  while (b > 0) {
    if (b % 2 == 1) ans = (ans * a) % m;
    b /= 2;
    a = (a * a) % m;
  }
  return ans % m;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int x1, y1, x2, y2, a, b;
  cin >> x1 >> y1 >> x2 >> y2;
  cin >> a >> b;
  int dx = x2 - x1;
  int dy = y2 - y1;
  if ((dx % a != 0 or dy % b != 0)) return cout << "NO\n", 0;
  dx = dx / a;
  dy = dy / b;
  if ((dx - dy) % 2 == 0)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
