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