#include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
signed main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  long long x1, x2, y1, y2, x, y;
  cin >> x1 >> y1 >> x2 >> y2 >> x >> y;
  long long dx = abs(x1 - x2), dy = abs(y1 - y2);
  if (dx % x || dy % y || dx / x % 2 != dy / y % 2)
    cout << "NO\n";
  else
    cout << "YES\n";
}
