#include <bits/stdc++.h>
using namespace std;
long long ax, ay, bx, by, cx, cy;
long long A, B, C;
long long sqr(long long x) { return x * x; }
long long bc(long long x1, long long y1, long long x2, long long y2) {
  return sqr(x1 - x2) + sqr(y1 - y2);
}
int main() {
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  C = bc(ax, ay, bx, by);
  A = bc(bx, by, cx, cy);
  B = bc(ax, ay, cx, cy);
  if (C == A) {
    if (ax + cx == 2 * bx && ay + cy == 2 * by) {
      cout << "No" << endl;
    } else {
      cout << "Yes" << endl;
    }
  } else {
    cout << "No" << endl;
  }
  return 0;
}
