#include <bits/stdc++.h>
int main() {
  int x1, y1, x2, y2, x, y;
  while (scanf("%d%d%d%d", &x1, &y1, &x2, &y2) != EOF) {
    scanf("%d%d", &x, &y);
    if (abs(x1 - x2) % x == 0 && abs(y1 - y2) % y == 0 &&
        (abs(x1 - x2) / x) % 2 == (abs(y1 - y2) / y) % 2)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
