program speedrun
   implicit none
   integer::a,b,c
   integer::check=0
   read*,a,b,c
   if(a==b)check=check+1
   if(b==c)check=check+1
   if(c==a)check=check+1
   print"(A)",trim(merge("Yes","No ",check==1))
end program speedrun