temp = gets.chomp.to_f
high,low = temp,temp
readlines.each do |line|
  temp = line.to_f
 if(temp > high || temp < low)
    if temp > high 
      high = temp
     else
      low = temp
    end   
 end
end
p high-low