#include <bits/stdc++.h>
using namespace std;
int x, y, a, b, m, n;
int main() {
  cin >> x >> y >> a >> b >> m >> n;
  if ((abs(a - x)) / m % 2 == (abs(b - y) / n) % 2 && abs(a - x) % m == 0 &&
      abs(b - y) % n == 0)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
