#include<bits/stdc++.h>
using namespace std;
#define el "\n"
#define ll long long
#define ull unsigned long long
#define se second
#define fi first
#define be begin()
#define en end()
#define Faster cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
int main()
{
Faster;
int xA, yA, xB, yB, xC, yC;
cin >> xA >> yA >> xB >> yB >> xC >> yC;
if((yB - yA) * (xC - xB) == (yC - yB) * (xB - xA)) cout << "YES";
else cout << "NO";
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKI2RlZmluZSBlbCAiXG4iCiNkZWZpbmUgbGwgbG9uZyBsb25nCiNkZWZpbmUgdWxsIHVuc2lnbmVkIGxvbmcgbG9uZwojZGVmaW5lIHNlIHNlY29uZAojZGVmaW5lIGZpIGZpcnN0CiNkZWZpbmUgYmUgYmVnaW4oKQojZGVmaW5lIGVuIGVuZCgpCiNkZWZpbmUgRmFzdGVyIGNpbi50aWUoMCk7IGNvdXQudGllKDApOyBpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKDApOwoKaW50IG1haW4oKQp7CiAgICBGYXN0ZXI7CiAgICBpbnQgeEEsIHlBLCB4QiwgeUIsIHhDLCB5QzsKICAgIGNpbiA+PiB4QSA+PiB5QSA+PiB4QiA+PiB5QiA+PiB4QyA+PiB5QzsKICAgIGlmKCh5QiAtIHlBKSAqICh4QyAtIHhCKSA9PSAoeUMgLSB5QikgKiAoeEIgLSB4QSkpIGNvdXQgPDwgIllFUyI7CiAgICBlbHNlIGNvdXQgPDwgIk5PIjsKICAgIHJldHVybiAwOwp9Cg==