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