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