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