def main(): N = int(input()) Z = [] for i in range(N): a,b = map(int,input().split()) Z.append((a,b)) Z.sort(key = lambda x: x[1]) #print(Z) w = 0 for i in range(N): a,b = Z[i] if w > b: print("No");exit() w += a print("Yes") if __name__ == '__main__': main()