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