#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1, y1, x2, y2, x, y;
  cin >> x1 >> y1 >> x2 >> y2 >> x >> y;
  int dx = abs(x2 - x1);
  int dy = abs(y2 - y1);
  if (dx % x != 0 || dy % y != 0) {
    cout << "NO";
    return 0;
  }
  if ((dx / x + dy / y) % 2 != 0) {
    cout << "NO";
    return 0;
  }
  cout << "YES";
  return 0;
}
