#include <bits/stdc++.h>
using namespace std;
vector<int> vec;
long long int arr[100005];
int main() {
  int x1, x2, y1, y2, a, b, i, j;
  cin >> x1 >> y1 >> x2 >> y2;
  cin >> a >> b;
  if ((x2 - x1) % a == 0 && (y2 - y1) % b == 0 &&
      (abs(x2 - x1) / a) % 2 == (abs(y2 - y1) / b) % 2)
    cout << "YES";
  else
    cout << "NO";
}
