#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int x1, x2, x3, y1, y2, y3;
  cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  long long int ab = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
  long long int ac = (x1 - x3) * (x1 - x3) + (y1 - y3) * (y1 - y3);
  long long int bc = (x2 - x3) * (x2 - x3) + (y2 - y3) * (y2 - y3);
  long long int ar = (x1 - x3) * (y2 - y1) - (x1 - x2) * (y3 - y1);
  if (ar == 0 || ab != bc) {
    cout << "No";
    exit(0);
  }
  cout << "Yes";
  return 0;
}
