#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:64000000")
using namespace std;
const int INF = (int)1E9;
const long long INF64 = (long long)1E18;
const long double EPS = 1E-8;
const long double PI = 3.1415926535897932384626433832795;
long long xa, xb, xc, ya, yb, yc;
bool solve(long long c1, long long c2) {
  long long a1 = xc, b1 = -yc;
  long long a2 = yc, b2 = +xc;
  long long d = a1 * b2 - b1 * a2;
  long long z1 = c1 * b2 - c2 * b1;
  long long z2 = a1 * c2 - a2 * c1;
  if (d == 0) return c1 == 0 && c2 == 0;
  return (z1 % d == 0 && z2 % d == 0);
}
int main() {
  cin >> xa >> ya;
  cin >> xb >> yb;
  cin >> xc >> yc;
  for (int i = 0; i < (int)(4); i++) {
    for (int j = 0; j < (int)(4); j++) {
      if (solve(xb - xa, yb - ya)) {
        cout << "YES" << endl;
        return 0;
      }
      swap(xb, yb);
      yb *= -1;
    }
    swap(xa, ya);
    ya *= -1;
  }
  cout << "NO" << endl;
  return 0;
}
