#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
long long test, n, m, k, x, y, z, h, b, sx, sy;
void solve() {
  cin >> sx >> sy >> x >> y >> h >> b;
  if (abs(sx - x) % (h) == 0 && abs(sy - y) % (b) == 0 &&
      abs(sx - x) / (h) % 2 == abs(sy - y) / (b) % 2) {
    cout << "YES\n";
    return;
  }
  cout << "NO";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  solve();
}
