var
M:byte;
begin
write('M = '); readln(M);
case M div 10 of
1: writeln(M, ' минут');
else
case M mod 10 of
0, 5..9: writeln(M, ' минут');
1: writeln(M, ' минута');
2..4: writeln(M, ' минуты');
end;
end.
var
M:byte;
begin
write('M = '); readln(M);
case M div 10 of
1: writeln(M, ' минут');
else
case M mod 10 of
0, 5..9: writeln(M, ' минут');
1: writeln(M, ' минута');
2..4: writeln(M, ' минуты');
end;
end;
end.