#include <bits/stdc++.h>
using namespace std;
int _;
long long a1, a2, b1, b2, c1, c2;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> a1 >> a2 >> b1 >> b2 >> c1 >> c2;
  if ((c2 - b2) * (c1 - a1) == (c2 - a2) * (c1 - b1)) {
    cout << "No";
  } else if ((a1 - b1) * (a1 - b1) + (a2 - b2) * (a2 - b2) ==
             (b1 - c1) * (b1 - c1) + (b2 - c2) * (b2 - c2)) {
    cout << "Yes";
  } else
    cout << "No";
}
