#include <bits/stdc++.h>
using namespace std;
int main() {
  long long xa, ya;
  long long xb, yb;
  long long xc, yc;
  cin >> xa >> ya >> xb >> yb >> xc >> yc;
  long long x = xa;
  long long y = ya;
  long long X = xb;
  long long Y = yb;
  for (int i = 0; i < 4; ++i) {
    if (i == 0) {
      xa = x;
      ya = y;
    }
    if (i == 1) {
      xa = -y;
      ya = x;
    }
    if (i == 2) {
      xa = -x;
      ya = -y;
    }
    if (i == 3) {
      xa = y;
      ya = -x;
    }
    xb = X - xa;
    yb = Y - ya;
    if (xc == 0) {
      if (yc == 0) {
        if (xb != 0 || yb != 0) continue;
        cout << "YES\n";
        return 0;
      }
      if (xb % yc == 0 && yb % yc == 0) {
        cout << "YES\n";
        return 0;
      }
      continue;
    }
    if ((xb * yc - yb * xc) % (xc * xc + yc * yc) == 0) {
      long long b = (xb * yc - yb * xc) / (xc * xc + yc * yc);
      if ((xb - b * yc) % xc == 0) {
        cout << "YES\n";
        return 0;
      }
    }
  }
  cout << "NO\n";
  return 0;
}
