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