S=input() n=len(S) n1=S.count(' ') n2=S.count(' ') print(["Yes","No"][n2>0 or n1*2+1!=n])