i = 0 x = int( input( ) ) while i < 5 : y = int( input( ) ) if y < x : x = y i = i + 1 print( y )