#include <bits/stdc++.h>
using namespace std;
long long a1, a2, b1, b2, c1, c2;
bool check(long long x, long long y) {
  long long d = c1 * c1 + c2 * c2;
  if (d == 0) return x == 0 && y == 0;
  return (x * c1 + y * c2) % d == 0 && (y * c1 - x * c2) % d == 0;
}
int main() {
  cin >> a1 >> a2 >> b1 >> b2 >> c1 >> c2;
  cout << (check(a1 - b1, a2 - b2) || check(a1 + b1, a2 + b2) ||
                   check(a1 - b2, a2 + b1) || check(a1 + b2, a2 - b1)
               ? "YES"
               : "NO")
       << endl;
}
