#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cerr.tie(0);
  cout.tie(0);
  int x1, y1, x2, y2, x, y;
  cin >> x1 >> y1 >> x2 >> y2;
  cin >> x >> y;
  while ((clock() * 1000.0 / CLOCKS_PER_SEC) < 900) {
    if (x1 == x2 && y1 == y2) return cout << "YES", 0;
    if (x1 < x2)
      x1 += x;
    else
      x1 -= x;
    if (y1 < y2)
      y1 += y;
    else
      y1 -= y;
  }
  return cout << "NO", 0;
}
