def fun(xa, ya, xb, yb, xc, yc): res = "No" if ya == yb: res = "Yes" return res x1, y1, x2, y2, x3 = map(int, input().split()) print(fun(x1, y1, x2, y2, x3, 0))