#include <bits/stdc++.h>
using namespace std;
int main() {
  double ax, ay, bx, by, cx, cy;
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  double midx = (ax + cx) / 2, midy = (ay + cy) / 2;
  if (midx == bx && midy == by)
    cout << "No\n";
  else {
    if (abs((cy - ay) * (midy - by) + (cx - ax) * (midx - bx)) <= 1e-7)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
}
