s=list(input().split()) print('YNeos'[sum([1 for i in s if len(i)==1])!=len(s)::2])