#include <bits/stdc++.h>
using namespace std;
long long dx, dy;
bool check(long long x, long long y) {
  if (!dx && !dy) return !x && !y;
  long long dis = ((dx) * (dx) + (dy) * (dy));
  long long c = ((dx) * (y) - (dy) * (x));
  long long d = ((dx) * (x) + (dy) * (y));
  return c % dis == 0 && d % dis == 0;
}
int main() {
  long long Ax, Ay, Bx, By;
  cin >> Ax >> Ay >> Bx >> By >> dx >> dy;
  long long bx[] = {Bx, -By, -Bx, By};
  long long by[] = {By, Bx, -By, -Bx};
  for (int j = 0; j < 4; ++j)
    if (check(bx[j] - Ax, by[j] - Ay)) return cout << "YES\n", 0;
  cout << "NO\n";
  return 0;
}
