#include <bits/stdc++.h>
using namespace std;
struct point {
  long long x, y;
};
double line(point a, point b) {
  return (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y);
}
int main() {
  point a, b, c;
  while (scanf("%lld%lld%lld%lld%lld%lld", &a.x, &a.y, &b.x, &b.y, &c.x,
               &c.y) != EOF) {
    if (line(a, b) == line(b, c) &&
        (a.x - b.x) * (c.y - b.y) != (c.x - b.x) * (a.y - b.y))
      printf("Yes\n");
    else
      printf("No\n");
  }
  return 0;
}
