#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int x1, y1, x2, y2, x, y;
  cin >> x1 >> y1 >> x2 >> y2;
  cin >> x >> y;
  if ((x2 - x1) % x != 0 || (y2 - y1) % y != 0)
    cout << "NO";
  else {
    if (((x2 - x1) / x) % 2 == 0 && ((y2 - y1) / y) % 2 == 0)
      cout << "YES";
    else if (((x2 - x1) / x) % 2 != 0 && ((y2 - y1) / y) % 2 != 0)
      cout << "YES";
    else
      cout << "NO";
  }
}
