#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6 + 10;
const double eps = 1e-8;
int main() {
  long long ax, ay, bx, by, cx, cy;
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  long long d1 = 1ll * (ax - bx) * (ax - bx) + 1ll * (ay - by) * (ay - by);
  long long d2 = 1ll * (bx - cx) * (bx - cx) + 1ll * (by - cy) * (by - cy);
  int flag = 1;
  if (ax == bx && bx == cx)
    flag = 0;
  else if (ay == by && by == cy)
    flag = 0;
  else if ((by - ay) * (cx - ax) == (bx - ax) * (cy - ay))
    flag = 0;
  if (d1 == d2 && flag)
    puts("Yes");
  else
    puts("No");
  return 0;
}
