#include <bits/stdc++.h>
using namespace std;
int main() {
#pragma warning(disable : 4996)
  int n, i, k, j, x, y;
  int x1, x2, y1, y2;
  scanf("%d%d%d%d", &x1, &y1, &x2, &y2);
  scanf("%d%d", &x, &y);
  if ((x2 - x1) % x == 0 && (y2 - y1) % y == 0 &&
      ((x2 - x1) / x - (y2 - y1) / y) % 2 == 0)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
