#include<iostream>
using namespace std;

int main(void){
	double x1=101,y1=101,x2=101,y2=101,x3=101,y3=101,x4=101,y4=101;
	double abConcurrentX,abConcurrentY,cdConcurrentX,cdConcurrentY;
	cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3 >> x4 >> y4;
	if(x1==101 or y1==101 or x2==101 or y2==101 or x3==101 or y3==101 or x4==101 or y3==101){
		return 0;
	}
	abConcurrentX = x1-x2;
	abConcurrentY = y1-y2;
	cdConcurrentX = x3-x4;
	cdConcurrentY = y3-y4;
	if((abConcurrentX == cdConcurrentX or abConcurrentX == -abConcurrentX) and (abConcurrentY == cdConcurrentY or abConcurrentY == -cdConcurrentY)){
		cout << "YES" << endl;
	}else{
		cout << "NO" << endl;
	}
	return 0;
}