#include <bits/stdc++.h>
using namespace std;
inline void read_string_to_vector(vector<string> &vec) {
  string str;
  getline(cin, str);
  vec.push_back(str);
}
template <typename T>
inline void read_digit_to_vector(vector<T> &vec) {
  T t;
  cin >> t;
  vec.push_back(t);
}
long long mx1, my1, mx2, my2;
long long x, y;
int main() {
  scanf("%lld %lld %lld %lld", &mx1, &my1, &mx2, &my2);
  scanf("%lld %lld", &x, &y);
  long long dx = abs(mx1 - mx2);
  long long dy = abs(my1 - my2);
  if (!(dx % x) && !(dy % y) && !((dx / x) + (dy / y) & 1))
    puts("YES");
  else
    puts("NO");
  return 0;
}
