#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
long long modpow(long long a, long long n) {
  long long ret = 1;
  long long b = a;
  while (n) {
    if (n & 1) ret = (ret * b) % 1000000007ll;
    b = (b * b) % 1000000007ll;
    n >>= 1;
  }
  return (long long)ret;
}
int main() {
  int x1, y1, x2, y2;
  int x, y;
  cin >> x1 >> y1 >> x2 >> y2;
  cin >> x >> y;
  int ans = true;
  ans &= ((x2 - x1) % x == 0);
  ans &= ((y2 - y1) % y == 0);
  ans &= ((abs(x2 - x1) / x) % 2 == (abs(y2 - y1) / y) % 2);
  if (ans)
    puts("YES");
  else
    puts("NO");
  return 0;
}
