#include <bits/stdc++.h>
using namespace std;
int inf = (1e9) + 7;
long long sqr(long long x) { return x * x; }
int main() {
  long long ax, ay;
  long long bx, by;
  long long cx, cy;
  cin >> ax >> ay;
  cin >> bx >> by;
  cin >> cx >> cy;
  long long d1 = sqr(ax - bx) + sqr(ay - by);
  long long d2 = sqr(cx - bx) + sqr(cy - by);
  if (d1 == d2 and ((ay - by) * (bx - cx) != (by - cy) * (ax - bx)))
    printf("Yes\n");
  else
    printf("No\n");
}
