N, X = map(int, input().split()) if (N, X) == (1, 1): print("Yes") else: print("No")