#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
int gcd(int a, int b) {
  if (a < b) swap(a, b);
  if (a % b == 0) return b;
  return gcd(b, a % b);
}
int main() {
  pii A, B, C;
  cin >> A.first >> A.second;
  cin >> B.first >> B.second;
  cin >> C.first >> C.second;
  bool good = false;
  for (int i = 0; i < 4; ++i) {
    pii D;
    D.first = B.first - A.first;
    D.second = B.second - A.second;
    int x = D.first, y = D.second;
    int cx = C.first, cy = C.second;
    long long det = (long long)cx * cx + (long long)cy * cy;
    if (det == 0) {
      if (x == 0 && y == 0) {
        good = true;
        break;
      }
    } else {
      if (((long long)cx * x + (long long)cy * y) % det == 0 &&
          ((long long)-cy * x + (long long)cx * y) % det == 0) {
        good = true;
        break;
      }
    }
    pii newA = pii(-A.second, A.first);
    A = newA;
  }
  if (good)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
