program pil_7_25(input,output);
var
	k : 1..maxint;

begin
	Write('Input k : ');
  Read(k);
  Write('Ìû ñîáðàëè ', k,' ãðèá');
  if (k mod 100 < 20)and(k mod 100 > 10) then Write('îâ')
  else
	  case k mod 10 of
	  	1 : ;
	  	2..4 : Write('à');
	  	5..9,0 : Write('îâ');
	  end;
  Write(' â ëåñó.');
  WriteLn;
end.