S = input() if not len(S)&1: print("No") exit() if len(S.split()) == -(-len(S)//2): print("Yes") else: print("No")