#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int ax, ay, bx, by, cx, cy;
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  long long int d1 = (ax - bx) * (ax - bx) + (ay - by) * (ay - by);
  long long int d2 = (bx - cx) * (bx - cx) + (by - cy) * (by - cy);
  long long int a = (cx - bx) * (by - ay);
  long long int b = (cy - by) * (bx - ax);
  if (d1 == d2 && a != b)
    cout << "Yes\n";
  else
    cout << "No\n";
  return 0;
}
