import numpy as np from scipy.spatial import ConvexHull points = [] for _ in range(5): x, y = map(int, input().split()) points.append([x, y]) points = np.asarray(points) hull = ConvexHull(points) print("YES" if hull.nsimplex == 5 else "NO")