#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1, y1, x2, y2;
  scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
  x2 -= x1;
  y2 -= y1;
  x2 = abs(x2);
  y2 = abs(y2);
  scanf("%d %d", &x1, &y1);
  if ((x2 % x1 == 0) && (y2 % y1 == 0)) {
    x2 /= x1;
    y2 /= y1;
    x1 = abs(x2 - y2);
    if ((x1 & 1) == 0) {
      printf("YES");
    } else {
      printf("NO");
    }
  } else {
    printf("NO");
  }
}
