#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, m, i, x, y, j, k, l, x1, x2, y1, y2;
  string a, b = "";
  cin >> x >> y >> x1 >> y1 >> x2 >> y2;
  n = (x - x1) * (x - x1) + (y - y1) * (y - y1);
  m = (x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1);
  if (n == m) {
    i = (x + x2);
    j = (y + y2);
    if (x1 * 2 == i && y1 * 2 == j)
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  } else
    cout << "No" << endl;
  return 0;
}
