#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, x, y;
  cin >> a >> b >> c >> d >> x >> y;
  a = abs(a - c);
  b = abs(b - d);
  if (a % x || b % y || (((a / x) & 1) ^ ((b / y) & 1)))
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
  return 0;
}
