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