#include <bits/stdc++.h>
using namespace std;
char s[500000];
int a[100000];
int main() {
  long long ax, ay, bx, by, cx, cy;
  scanf("%lld%lld%lld%lld%lld%lld", &ax, &ay, &bx, &by, &cx, &cy);
  if ((ax - bx) * (by - cy) == (ay - by) * (bx - cx)) {
    printf("No\n");
  } else {
    if ((ax - bx) * (ax - bx) + (ay - by) * (ay - by) ==
        (by - cy) * (by - cy) + (bx - cx) * (bx - cx)) {
      printf("Yes\n");
    } else
      printf("No\n");
  }
}
