with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;

procedure Solve is
   A : Integer;
   B : Integer;
   C : Integer;
   flag : Integer;
begin
   Get (A);
   Get (B);
   Get (C);
   if A = B then
      if A = C then
         Put_Line ("No");
      else
         Put_Line ("Yes");
      end if;
   else
      if A = C then
         Put_Line ("Yes");
      elsif B = C then
         Put_Line ("Yes");
      else
         Put_Line ("No");
      end if;
   end if;
end Solve;