#include <bits/stdc++.h>
using namespace std;
int main() {
  long double a, b, x, y, v, res, mi = 0.0000000001, t1, t2, c, d, vpr;
  long double xb, yb, xc, yc;
  int n, i, j, k, p = 0;
  cin >> c >> d >> a >> b >> x >> y;
  t1 = sqrt((x - a) * (x - a) + (y - b) * (y - b));
  t2 = sqrt((c - a) * (c - a) + (d - b) * (d - b));
  xb = a - c;
  yb = b - d;
  xc = x - c;
  yc = y - d;
  vpr = xb * yc - yb * xc;
  if (abs(t1 - t2) <= mi && abs(vpr) > mi)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
