#define _USE_MATH_DEFINES
#include <iostream>
#include <sstream>
#include <cmath>
#include <algorithm>
#include <queue>
#include <stack>

typedef long long ll;
using namespace std;

int main()
{
	double pos[8];

	for(int i=0;i<8;i++){
		scanf("%lf",pos+i);
	}

	if((pos[1]-pos[3])/(pos[0]-pos[2])==(pos[1+4]-pos[3+4])/(pos[0+4]-pos[2+4])){
		cout << "YES" << endl;
	}else
	{
		cout << "NO" << endl;	
	}
}