#include <bits/stdc++.h>
using namespace std;
long long T, m, n, q, w, mi, ma, cnt, s, t, fi, cc, e, r, z, x, an, anx, any,
    cx, cy;
long long d[5][2];
int main() {
  scanf("%I64d%I64d", &m, &n);
  scanf("%I64d%I64d", &e, &r);
  scanf("%I64d%I64d", &cx, &cy);
  for (int i = 0; i < 4; i++) {
    q = e;
    w = r;
    d[i][0] = e - m;
    d[i][1] = r - n;
    e = -w;
    r = q;
  }
  fi = 0;
  for (int i = 0; i < 4; i++) {
    if (d[i][0] == 0 && d[i][1] == 0) {
      fi = 1;
      break;
    }
    if (cx == 0 && cy == 0) continue;
    if ((d[i][1] * cx - d[i][0] * cy) % (cx * cx + cy * cy) == 0)
      if ((d[i][0] * cx + d[i][1] * cy) % (cx * cx + cy * cy) == 0) {
        fi = 1;
        break;
      }
  }
  if (fi == 1)
    puts("YES");
  else
    puts("NO");
  return 0;
}
