#include <bits/stdc++.h>
using namespace std;
long long vvvx, _x2, _x3, uuux, _y2, _y3;
bool cal(long long vvvx, long long uuux) {
  long long uuu, vvv, o;
  uuu = _x3 - vvvx;
  vvv = _y3 - uuux;
  if (uuu == 0 && vvv == 0) return 1;
  if (_x2 == 0 && _y2 == 0) return 0;
  long long x = _x2, y = _y2, _x = x, _y = y;
  o = 0;
  long long _x2, _y2;
  for (int i = 1; i <= 4; i++) {
    _x = -y;
    _y = x;
    x = _x;
    y = _y;
    if (_x * uuu + _y * vvv > 0) {
      if (o == 1) {
        _x2 = _x;
        _y2 = _y;
        o = 2;
      } else if (o == 0) {
        vvvx = _x;
        uuux = _y;
        o = 1;
      }
    }
  }
  if (o == 1 && (uuu == vvvx || uuu % vvvx == 0) &&
      (vvv == uuux || vvv % uuux == 0))
    return 1;
  else if (o == 1)
    return 0;
  long long f1, f2, g1, g2;
  f1 = uuu * _y2 - _x2 * vvv;
  g1 = vvvx * _y2 - _x2 * uuux;
  f2 = uuu * uuux - vvvx * vvv;
  g2 = _x2 * uuux - vvvx * _y2;
  if (f1 % g1 == 0 && f2 % g2 == 0)
    return 1;
  else
    return 0;
}
int main() {
  cin >> vvvx >> uuux;
  cin >> _x3 >> _y3;
  cin >> _x2 >> _y2;
  bool ans = 0;
  ans |= cal(vvvx, uuux);
  ans |= cal(-vvvx, -uuux);
  ans |= cal(-uuux, vvvx);
  ans |= cal(uuux, -vvvx);
  if (ans)
    cout << "YES\n";
  else
    cout << "NO\n";
}
