#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a1, a2, b1, b2, c1, c2;
  cin >> a1 >> a2 >> b1 >> b2 >> c1 >> c2;
  long long x = (a1 - b1) * (a1 - b1) + (a2 - b2) * (a2 - b2),
            y = (b1 - c1) * (b1 - c1) + (b2 - c2) * (b2 - c2);
  if (x != y)
    cout << "No" << endl;
  else {
    if ((a2 - b2) * (c1 - b1) == (a1 - b1) * (c2 - b2))
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  }
}
