#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x1, x2, x3, y1, y2, y3;
  cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  long long s, s1, s2;
  s1 = ((x2 - x1) * (y3 - y1));
  s2 = (x3 - x1) * (y2 - y1);
  if (s1 - s2 != 0 && ((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2) ==
                       (x3 - x2) * (x3 - x2) + (y3 - y2) * (y3 - y2)))
    cout << "Yes";
  else
    cout << "no";
  return 0;
}
