#include <bits/stdc++.h>
using namespace std;
const int dr[] = {-1, 0, 1, 0, -1, -1, 1, 1};
const int dc[] = {0, -1, 0, 1, -1, 1, -1, 1};
long long ax, ay, bx, by, cx, cy;
long long dist(long long x1, long long y1, long long x2, long long y2) {
  return ((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2));
}
int main() {
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  if (dist(ax, ay, bx, by) != dist(bx, by, cx, cy)) {
    cout << "No\n";
    return 0;
  }
  if (ax - bx == bx - cx && ay - by == by - cy)
    cout << "No\n";
  else if (ax - cx == cx - bx && ay - cy == cy - by)
    cout << "No\n";
  else if (bx - ax == ax - cx && by - ay == ay - cy)
    cout << "No\n";
  else if (bx - cx == cx - ax && by - cy == cy - ay)
    cout << "No\n";
  else if (cx - ax == ax - cx && cy - ay == ay - cy)
    cout << "No\n";
  else if (cx - bx == bx - cx && cy - by == by - cy)
    cout << "No\n";
  else
    cout << "Yes\n";
  return 0;
}
