#include <bits/stdc++.h>
using namespace std;
long long sqr(int a) { return 1ll * a * a; }
int main() {
  int ax, ay, bx, by, cx, cy;
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  if (sqr(bx - ax) + sqr(by - ay) == sqr(cx - bx) + sqr(cy - by) &&
      1ll * (bx - ax) * (cy - by) != 1ll * (cx - bx) * (by - ay))
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
