#include <bits/stdc++.h>
int main() {
  int n, m, p, q, a, b;
  scanf("%d %d %d %d", &n, &m, &p, &q);
  scanf("%d %d", &a, &b);
  int u = q - m, v = p - n;
  if (u < 0) u = -u;
  if (v < 0) v = -v;
  if ((u) % b == 0 && (v) % a == 0) {
    int c = u / b - v / a;
    if (c < 0) c = -c;
    if (c % 2 == 0)
      printf("YES\n");
    else
      printf("NO\n");
  } else
    printf("NO\n");
}
