# https://atcoder.jp/contests/abc155/tasks/abc155_a

read row ; A=($row) ; a=A[0] ; b=A[1]; c=A[2]
memo[$a]=1 ; memo[$b]=1 ; memo[$c]=1
num=${#memo[*]}
if [ $((num)) -eq $((2)) ] ; then
  echo "Yes"
else
  echo "No"
fi
