#include
#include
using namespace std;
struct Dot {
double x;
double y;
double distance(const Dot& d)const {
return sqrt(pow(d.x - x, 2) + pow(d.y - y, 2));
}
bool isline(const Dot& da, const Dot& db)const {
const auto a = da.distance(db);
const auto b = distance(da);
const auto c = distance(db);
const auto sm = a + b + c;
const auto mx = max(a, max(a, b));
const auto mn = min(a, min(a, b));
const auto md = sm - mx - mn;
return fabs(mx - mn - md) < 1e-14;
}
private:
friend istream& operator>>(istream& inp, Dot& d) {
return inp >> d.x >> d.y;
}
};
int main() {
Dot a1{}, a2{}, a3{};
cout > a1;
cout > a2;
cout > a3;
puts(a3.isline(a1, a2) ? "NO" : "YES");
}