#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
int main() {
  int x1, y1, x2, y2, x, y;
  cin >> x1 >> y1 >> x2 >> y2 >> x >> y;
  int v = abs(x1 - x2);
  int w = abs(y1 - y2);
  if (v % x == 0 && w % y == 0 && abs(v / x - w / y) % 2 == 0) {
    puts("YES");
  } else {
    puts("NO");
  }
}
