◯≠△=▢⇛Yes それ以外⇛No
文字列だと。(python) a, b, c = map(int, input().split()) print("Yes" if a != b and b == c else "No") になる