#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const double EPS = 1e-9;
const int INF = 1 << 29;
int main() {
  int x1, y1, x2, y2;
  cin >> x1 >> y1 >> x2 >> y2;
  int x, y;
  cin >> x >> y;
  int dx = abs(x1 - x2), dy = abs(y1 - y2);
  if (dx % x || dy % y) {
    puts("NO");
    return 0;
  }
  int t = dx / x - dy / y;
  if (t & 1) {
    puts("NO");
  } else {
    puts("YES");
  }
  return 0;
}
