#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  long long int ax, ay, bx, by, cx, cy;
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  long long int a = (ax - cx) * (by - ay) - (ax - bx) * (cy - ay);
  if (a) {
    long double dab =
        sqrt((long double)(ax - bx) * (ax - bx) + (ay - by) * (ay - by));
    long double dbc =
        sqrt((long double)(bx - cx) * (bx - cx) + (by - cy) * (by - cy));
    if (dab == dbc)
      cout << "Yes";
    else
      cout << "No";
  } else
    cout << "No";
}
