program penki_skaiciai;
  { 5 u‘davinys }
  type skaiciai = array [1..5] of integer;
  function yra (s : skaiciai) : boolean;
    var i, j, t : integer;
  begin
    for i := 1 to 4 do
      for j := i + 1 to 5 do
        if s[i] > s[j]  { masyvo r–žiavimas }
           then begin
                  t := s[i];
                  s[i] := s[j];
                  s[j] := t
                end;    { masyvas sutvarkytas }
    yra := (s[3] <> s[4]) and (s[3] <> s[2])
  end;

  var s : skaiciai;
      i : integer;
begin
  for i := 1 to 5 do
      read (s[i]);
  if yra (s)
     then writeln ('Yra')
     else writeln ('N‚ra')
end.