var
a, b, c, d, t1, t2:longint;
begin
write('a = '); readln(a);
write('b = '); readln(b);
write('c = '); readln(c);
write('d = '); readln(d);
if a < b then
t1 := a
else
t1 := b;
if c < d then
t2 := c
else
t2 := d;
if t1 < t2 then
writeln('Min = ', t1)
else
writeln('Min = ', t2);
readln;
end.