#include <bits/stdc++.h>
using namespace std;
long long ax, ay, bx, by, cx, cy;
long long dis(long long x, long long y, long long xx, long long yy) {
  return (xx - x) * (xx - x) + (yy - y) * (yy - y);
}
int main() {
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  if (ax == bx && bx == cx && ay == by && by == cy) {
    cout << "No";
    return 0;
  }
  if (dis(ax, ay, bx, by) == dis(bx, by, cx, cy)) {
    if (abs(cy - ay) == 2 * abs(by - ay) && abs(cx - ax) == 2 * abs(bx - ax)) {
      cout << "No";
    } else {
      cout << "Yes";
    }
  } else {
    cout << "No";
  }
  return 0;
}
