a = int(input()) b = int(input()) if int(a/b) == 2 or int(b/a) == 2: print("Yes") else: print("No")