#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, x, y;
  scanf("%d %d %d %d", &a, &b, &c, &d);
  scanf("%d %d", &x, &y);
  if (((a - c) % x != 0) || ((b - d) % y != 0)) {
    printf("NO\n");
    return 0;
  }
  int t1 = (a - c) / x, t2 = (b - d) / y;
  if ((t1 - t2) % 2 == 0)
    printf("YES\n");
  else if (x == 0 || y == 0)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
