#include <bits/stdc++.h>
using namespace std;
const unsigned int M = 1000000007;
const int mxN = 2e5;
const int s = 101;
int a[s][s];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  int x1, y1, x2, y2, x, y;
  cin >> x1 >> y1 >> x2 >> y2 >> x >> y;
  int a = abs(x1 - x2);
  int b = abs(y1 - y2);
  if (a % x || b % y || a / x % 2 != b / y % 2) {
    cout << "No";
    return 0;
  }
  cout << "YES";
}
