x1, y1, x2, y2, x3 = map(int, input().split()) a = (x1, y1) b = (x2, y2) c = (x3, 0) def s(a, b): ax, ay = a bx, by = b return abs(ax * by - ay * bx) print('Yes' if s(a, c) == s(b, c) else 'No')