#include <bits/stdc++.h>
using namespace std;
int abs1(int x) { return (x < 0 ? -x : x); }
int main() {
  int a1, a2, b1, b2;
  cin >> a1 >> a2 >> b1 >> b2;
  int x, y;
  cin >> x >> y;
  int diffx = abs1(a1 - b1);
  int diffy = abs1(a2 - b2);
  if (diffx % x == 0 && diffy % y == 0 && ((diffx / x) % 2 == (diffy / y) % 2))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
