#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int x1, y1, x2, y2, x3, y3;
  cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  long long int one = x1 * (y2 - y3);
  long long int two = x2 * (y3 - y1);
  long long int three = x3 * (y1 - y2);
  long long int area = one + two + three;
  long long int d1 = pow((x1 - x2), 2) + pow((y1 - y2), 2);
  long long int d2 = pow((x3 - x2), 2) + pow((y3 - y2), 2);
  if ((d1 == d2) && (abs(area) != 0))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
