#include <bits/stdc++.h>
long long int ax, ay, bx, by, cx, cy;
int main() {
  scanf("%I64d%I64d%I64d%I64d%I64d%I64d", &ax, &ay, &bx, &by, &cx, &cy);
  long long int s1, s2, s3;
  s1 = (ax - bx) * (ax - bx) + (ay - by) * (ay - by);
  s3 = (cx - bx) * (cx - bx) + (cy - by) * (cy - by);
  if (bx * 2 == (ax + cx) && by * 2 == (ay + cy))
    printf("No\n");
  else if (s1 == s3)
    printf("Yes\n");
  else
    printf("No\n");
}
