vara:byte;beginreadln(a);if ((a<11) or ((a>14) and (a<110)) or (a>114)) and (a mod 10<5) and (a mod 10>1) thenwriteln(a,' года') elseif (a mod 10=1) and (a<>11) and (a<>111) thenwriteln(a,' год') elsewriteln(a,' лет');readln;end.
var
a:byte;
begin
readln(a);
if ((a<11) or ((a>14) and (a<110)) or (a>114)) and (a mod 10<5) and (a mod 10>1) then
writeln(a,' года') else
if (a mod 10=1) and (a<>11) and (a<>111) then
writeln(a,' год') else
writeln(a,' лет');
readln;
end.