#include <bits/stdc++.h>
using namespace std;
int main() {
  int xi, yi, xf, yf, x, y;
  cin >> xi >> yi >> xf >> yf;
  cin >> x >> y;
  bool ok = 1;
  if ((xf - xi) % x || (yf - yi) % y) ok = 0;
  int a = abs((xf - xi) / x);
  int b = abs((yf - yi) / y);
  if (a % 2 != b % 2) ok = 0;
  if (ok)
    puts("YES");
  else
    puts("NO");
  return 0;
}
