X1,Y1,X2,Y2,X3 = map(int,input().split()) def menseki_triangle(a,b,c): """ a,b,cを頂点とする三角形の面積を求める。 """ x1,y1 = a[0],a[1] x2,y2 = b[0],b[1] x3,y3 = c[0],c[1] return abs((x1-x3)*(y2-y3)-(x2-x3)*(y1-y3))/2 a = menseki_triangle([0,0],[X1,Y1],[X3,0]) b = menseki_triangle([0,0],[X2,Y2],[X3,0]) if a == b: print("Yes") else: print("No")