input = gets.chomp egg = input.split puts egg.min