x1,y1,x2,y2,x3 = map(int,input().split()) t1 = abs(x1*y2-x2*y1) t2 = abs((x1-x3)*y2-(x2-x3)*y1) print("Yes" if t1 == t2 else "No")