#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y, xx1, yy1, xx2, yy2;
  scanf("%d %d %d %d", &xx1, &yy1, &xx2, &yy2);
  scanf("%d %d", &x, &y);
  if (abs(xx1 - xx2) % x == 0 && abs(yy1 - yy2) % y == 0 &&
      ((xx1 - xx2) / x + (yy1 - yy2) / y) % 2 == 0)
    printf("YES");
  else
    printf("NO");
  return 0;
}
