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