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