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

procedure hoge is
 a: integer;
 b: integer;
 c: integer;
begin
 get(a);
 get(b);
 get(c);
 if a=b then
  if a/=c then
   put_line("Yes");
  else
   put_line("No");
  end if;
 elsif a=c then
  put_line("Yes");
 elsif b=c then
  put_line("Yes");
 else
  put_line("No");
 end if;
end hoge;