#include <bits/stdc++.h>
int main() {
  long long int x1, y1, x2, y2, a, b;
  std::cin >> x1 >> y1 >> x2 >> y2 >> a >> b;
  int xDist = abs(x2 - x1), yDist = abs(y2 - y1);
  int xStep = xDist / a, yStep = yDist / b;
  if ((x2 - x1) % a != 0 || (y2 - y1) % b != 0) {
    std::cout << "NO";
  } else if ((abs(x2 - x1)) / a == abs(y2 - y1) / b)
    std::cout << "YES";
  else if (xStep % 2 == 0 && yStep % 2 == 0 || xStep % 2 == 1 && yStep % 2 == 1)
    std::cout << "YES";
  else
    std::cout << "NO";
}
