#include <bits/stdc++.h>
using namespace std;
bool volum(char x) {
  if (x == 'a' || x == 'o' || x == 'u' || x == 'i' || x == 'e')
    return true;
  else
    return false;
}
int main() {
  int x1, y1, x2, y2;
  int a, b;
  cin >> x1 >> y1 >> x2 >> y2;
  cin >> a >> b;
  int e = abs(x1 - x2);
  e = ceil(e / (a));
  int k = abs(y1 - y2);
  k = ceil(k / (b));
  if (abs(e - k) % 2 == 0 && abs(x1 - x2) % a == 0 && abs(y1 - y2) % b == 0)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
