def zen(x1,y1,x2,y2): return abs(x1 * y2 - x2 * y1) a,b,c,d,e=map(int,input().split()) print("Yes" if zen(a,b,e,0)==zen(c,d,e,0) else "No")