#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-7;
const double PI = acos(-1.0);
const int MOD = 1000000007;
const int INF = 0x3f3f3f3f;
const long long LL_INF = 0x3f3f3f3f3f3f3f3f;
int main() {
  int x1, y1, x2, y2;
  int dx, dy;
  while (scanf("%d%d%d%d", &x1, &y1, &x2, &y2) != EOF) {
    scanf("%d%d", &dx, &dy);
    x2 -= x1;
    y2 -= y1;
    if ((x2 % dx) || (y2 % dy)) {
      printf("NO\n");
      continue;
    }
    int temp = abs(x2) / dx + abs(y2) / dy;
    if (temp % 2)
      printf("NO\n");
    else
      printf("YES\n");
  }
  return 0;
}
