#include <bits/stdc++.h>
using namespace std;
const int con = 1e8;
static const int INF = 0x3f3f3f3f;
static const int MOD = 998244353;
int main() {
  int x1, y1, x2, y2;
  scanf("%d", &x1);
  scanf("%d", &y1);
  scanf("%d", &x2);
  scanf("%d", &y2);
  int x, y;
  scanf("%d", &x);
  scanf("%d", &y);
  x1 = abs(x1 - x2);
  y1 = abs(y1 - y2);
  if (x1 % x == 0 && y1 % y == 0 && ((x1 / x) % 2 == (y1 / y) % 2))
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
