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