#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1, x2, y1, y2, x, y;
  cin >> x1 >> y1 >> x2 >> y2 >> x >> y;
  int temp1 = abs(x1 - x2), temp2 = abs(y1 - y2);
  int temp3 = temp1 / x, temp4 = temp2 / y;
  if (temp1 % x == 0 && temp2 % y == 0 && temp3 % 2 == temp4 % 2)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
