#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e2 + 5;
const int mod = 1e9 + 7;
double ax, ay, bx, by, cx, cy;
double dis(double x1, double y1, double x2, double y2) {
  return sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
}
int main() {
  while (~scanf("%lf%lf%lf%lf%lf%lf", &ax, &ay, &bx, &by, &cx, &cy)) {
    if ((by - ay) / (bx - ax) == (cy - by) / (cx - bx)) {
      printf("No\n");
      continue;
    }
    if (dis(ax, ay, bx, by) == dis(bx, by, cx, cy)) {
      printf("Yes\n");
    } else
      printf("No\n");
  }
  return 0;
}
