// Try Codeforces
// author: Leonardone @ NEETSDKASU
import std.stdio      : readln, writeln;
import std.string     : chomp;
import std.array      : split;
import std.conv       : to;
import std.bigint     : BigInt;

auto gets() { return readln.chomp; }
auto getV(T)() { return gets.to!T; }
auto getVals(T)() { return gets.split.to!(T[]); }

void main() {
    auto abc = getVals!BigInt;
    auto ax = abc[0], ay = abc[1];
    auto bx = abc[2], by = abc[3];
    auto cx = abc[4], cy = abc[5];
    auto dxab = ax - bx;
    auto dyab = ay - by;
    auto dxbc = bx - cx;
    auto dybc = by - cy;
    if (dxab ^^ 2 + dyab ^^ 2 != dxbc ^^ 2 + dybc ^^ 2) {
        writeln("No");
        return;
    }
    if (ax + cx == 2 * bx && ay + cy == 2 * by) {
        writeln("No");
        return;
    }
    writeln("Yes");
}