n = int(input()) ma = 0 v = [0] * n w = [0] * n for i in range(n): v[i], w[i] = map(int, input().split()) for i in range(n): if w[i] == 1: ma = max(ma, v[i]) for i in range(n): if ma * w[i] < v[i]: print('No') break else: print('Yes')