#include <bits/stdc++.h>
using namespace std;
long long a[1000010], d[1000010];
long long b[100010], c[1010][1010];
long long mn = 1e18, mx = -1e18, ans, cnt, sm = 1, n, m, cur;
bool ok, okk, u[1000010], uu[310][310], uk[1000010];
char ck[510][510], ch[100010];
int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
vector<long long> g[900010];
int main() {
  std::ios::sync_with_stdio(false);
  long long ax, ay, bx, by, x, y;
  cin >> ax >> ay >> bx >> by >> x >> y;
  long long dx = abs(ax - bx);
  long long dy = abs(ay - by);
  if (dx % x == 0 && dy % y == 0 &&
      ((dx / x) % 2 == 1 && (dy / y) % 2 == 1 ||
       (dx / x) % 2 == 0 && (dy / y) % 2 == 0)) {
    cout << "YES";
    return 0;
  }
  cout << "NO";
  return 0;
}
