#include <bits/stdc++.h>
using namespace std;
long long xa, xb, ya, yb, za, zb;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> xa >> xb >> ya >> yb >> za >> zb;
  long long x1 = (xa - ya) * (xa - ya) + (xb - yb) * (xb - yb);
  long long x2 = (ya - za) * (ya - za) + (yb - zb) * (yb - zb);
  long long y2 = (xa - za) * (xa - za) + (xb - zb) * (xb - zb);
  ;
  if (x1 == x2 && (za - ya != ya - xa || zb - yb != yb - xb))
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
