PascalABC
var s: string;
begin
readln(s);
writeln((s.Substring(0,s.IndexOf(' '))=s.Substring(s.IndexOf(' ')+1)) ? 'Yes' : 'No');
end.