N = int(input()) points = [tuple(map(int,input().split())) for _ in range(N)] points.sort() from functools import cmp_to_key def ccw(a,b,c): ax,ay = a bx,by = b cx,cy = c bx -= ax cx -= ax by -= ay cy -= ay crs = bx*cy-cx*by if crs > 0:return 1 if crs < 0: return -1 return 0 p0 = points[0] def cmp(a,b): return ccw(p0, a, b) ps = sorted(points[1:], cmp_to_key(cmp)) ps.append(p0) ccws=[ccw(ps[i-2],ps[i-1],ps[i]) for i in renge(N)] if min(ccws) == max(ccws) and cces[0] != 0: print("Yes") else: print("No")