var
  min, input_num : integer;

begin
  readln(min); { when you have one number, it is both the min. and the max. }
  readln(input_num); { now, we have two numbers, gotta make sure min is 
                       still min }
  if min > input_num then
    min := input_num;

  { min is the minimum of the first two numbers }

  readln(input_num); { now, we have two numbers, gotta make sure min is 
                       still min }
  if min > input_num then
    min := input_num;

  writeln(min)
end.

