var
a,min:integer;
begin
readln(a);
if a=0 then
writeln('Error');
exit;
end
else
min:=a;
repeat
if min>a then
until a=0;
writeln('Min: ',min);
end;
end.
var
a,min:integer;
begin
readln(a);
if a=0 then
begin
writeln('Error');
exit;
end
else
begin
min:=a;
repeat
if min>a then
min:=a;
readln(a);
until a=0;
writeln('Min: ',min);
end;
end.