#include <bits/stdc++.h>
using namespace std;
static const double EPS = 1e-5;
int main() {
  long long x1, y1, x2, y2, x3, y3;
  cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  vector<long long> xs;
  vector<long long> ys;
  xs.push_back(x1);
  xs.push_back(y1);
  xs.push_back(-x1);
  xs.push_back(-y1);
  ys.push_back(y1);
  ys.push_back(-x1);
  ys.push_back(-y1);
  ys.push_back(x1);
  bool ok = false;
  if (x3 == 0 && y3 == 0) {
    for (int i = 0; i < 4; i++) {
      if (xs[i] == x2 && ys[i] == y2) {
        ok = true;
        break;
      }
    }
  } else {
    for (int i = 0; i < 4; i++) {
      long long x = x2 - xs[i];
      long long y = y2 - ys[i];
      if ((x * x3 + y * y3) % (x3 * x3 + y3 * y3) == 0 &&
          (x * y3 - y * x3) % (x3 * x3 + y3 * y3) == 0) {
        ok = true;
        break;
      }
    }
  }
  if (ok)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
