#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int x1, y1, x2, y2;
  double x, y;
  cin >> x1 >> y1 >> x2 >> y2;
  cin >> x >> y;
  int dx, dy;
  dy = y2 - y1;
  dx = x2 - x1;
  int steps;
  if (abs(dy) > abs(dx)) {
    if (ceil((dy / (double)y)) != floor((dy / (double)y))) {
      cout << "NO";
      return 0;
    }
    if (ceil((dx / (double)x)) != floor((dx / (double)x))) {
      cout << "NO";
      return 0;
    }
    steps = abs(dy) / abs(y);
    double a = (abs(dx) / abs(x) + steps) / (double)2;
    if (floor(a) == ceil(a))
      cout << "YES";
    else
      cout << "NO";
  } else {
    if (ceil((dy / (double)y)) != floor((dy / (double)y))) {
      cout << "NO";
      return 0;
    }
    if (ceil((dx / (double)x)) != floor((dx / (double)x))) {
      cout << "NO";
      return 0;
    }
    steps = abs(dx) / abs(x);
    double a = (abs(dy) / abs(y) + steps) / (double)2;
    if (floor(a) == ceil(a))
      cout << "YES";
    else
      cout << "NO";
  }
  return 0;
}
