#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long x1, x2, y1, y2, x, y;
  cin >> x1 >> y1 >> x2 >> y2;
  cin >> x >> y;
  x = abs(x);
  y = abs(y);
  long long dx = abs(x1 - x2);
  long long dy = abs(y1 - y2);
  int xpar, ypar;
  bool is = true;
  if (x == 0) {
    if (dx != 0) is = false;
    xpar = 0;
  } else {
    if (dx % x != 0) is = false;
    xpar = (dx / x) % 2;
  }
  if (y == 0) {
    if (dy != 0) is = false;
    ypar = 0;
  } else {
    if (dy % y != 0) is = false;
    ypar = (dy / y) % 2;
  }
  is = is and (xpar == ypar);
  cout << ((is) ? "YES" : "NO") << '\n';
  return 0;
}
