#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(false);
  long long int a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  if (a * (d - f) + c * (f - b) + e * (b - d) == 0) {
    cout << "No";
    return 0;
  }
  long long int temp = (c - a) * (c - a) + (d - b) * (d - b);
  long long int temp2 = (e - c) * (e - c) + (f - d) * (f - d);
  if (temp == temp2) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  return 0;
}
