#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1, x2, yl, y2;
  cin >> x1 >> yl >> x2 >> y2;
  x1 -= x2;
  yl -= y2;
  int x, y;
  cin >> x >> y;
  if (x1 % x == 0 && yl % y == 0 && abs((x1 / x) % 2) == abs((yl / y) % 2))
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
