#include <bits/stdc++.h>
using namespace std;
int ax, ay, bx, by, cx, cy;
int main() {
  scanf("%d%d%d%d%d%d", &ax, &ay, &bx, &by, &cx, &cy);
  if (ax == bx && bx == cx) {
    printf("No\n");
    return 0;
  }
  if ((long long)(by - ay) * (cx - bx) == (long long)(cy - by) * (bx - ax)) {
    printf("No\n");
    return 0;
  }
  long long ab =
      (long long)(bx - ax) * (bx - ax) + (long long)(by - ay) * (by - ay);
  long long bc =
      (long long)(cx - bx) * (cx - bx) + (long long)(cy - by) * (cy - by);
  if (ab == bc)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
