def convex_hull(points): points = list(map(tuple, points)) n = len(points) if n == 0: return [] points = sorted(set(points)) if n == 1: return points def cross(o, a, b): return (a[0] - o[0]) * (b[1] - o[1]) - (a[1] - o[1]) * (b[0] - o[0]) lower = [] for p in points: while len(lower) >= 2 and cross(lower[-2], lower[-1], p) <= 0: lower.pop() lower.append(p) upper = [] for p in reversed(points): while len(upper) >= 2 and cross(upper[-2], upper[-1], p) <= 0: upper.pop() upper.append(p) full_hull = lower[:-1] + upper[:-1] return [tuple(x) for x in full_hull] def main(): import sys input = sys.stdin.read().split() points = [] for i in range(5): x = int(input[2*i]) y = int(input[2*i +1]) points.append((x, y)) hull = convex_hull(points) if len(hull) ==5: print("YES") else: print("NO") if __name__ == "__main__": main()