#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x1, y1, x2, y2, a, b;
  cin >> x1 >> y1 >> x2 >> y2 >> a >> b;
  long long n1, n2;
  n2 = ((y2 - y1) / b);
  n1 = ((x2 - x1) / a);
  if ((abs(y2 - y1) % b) || (abs(x2 - x1) % a))
    cout << "NO\n";
  else {
    if ((n2 % 2 == 0) && (n1 % 2 == 0))
      cout << "YES\n";
    else if ((n2 % 2 != 0) && (n1 % 2 != 0))
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
