Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)

func read() string {
	sc.Scan()
	return sc.Text()
}

func main() {
	sc.Split(bufio.ScanLines)
	max := 0.0
	min := 1000000.0
	for sc.Scan() {
		n, _ := strconv.ParseFloat(sc.Text(), 64)
		if max < n {
			max = n
		}
		if min > n {
			min = n
		}
	}
	fmt.Println(max - min)
}

Python: mi = 2000000
ma = 0
while(True):
    try:
        a = float(input())
        mi = min(a,mi)
        ma = max(a,ma)
    except:
        print(ma-mi)
        break

Python: max_high = 0
min_high = 10**6

while True :
    try :
        n = float(input())
        if max_high < n :
            max_high = n
        if min_high > n :
            min_high = n
    except EOFError :
        break

print(max_high - min_high)

Python: try:
  lst=[]
  while True:
   a=float(input())
   lst.append(a)
except :
  print(max(lst)-min(lst))

Python: L = []
while True:
    try:
        f = float(input())
        L.append(f)
        
    except EOFError:
        break

print( max(L) - min(L) )

Python: a = []
while True:
    try:
        a.append(float(input()))
    except:
        break
a.sort(reverse = True)
print(a[0]-a[-1])

Python: # -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0046
?¨???????
"""
import sys

def main(args):
    mountains = []
    for line in sys.stdin:  # ??????????????\???
        mountains.append(float(line.strip()))

    max_height = max(mountains)
    min_height = min(mountains)

    print(max_height - min_height)

if __name__ == '__main__':
    main(sys.argv[1:])

Python: A=[]

while True:
	try:
		height = float(input())
		A.append(height)

	except EOFError:
		break
	
A.sort(reverse=True)
print(A[0]-A[-1])

Python: import sys
a=[float(e)for e in sys.stdin]
print(max(a)-min(a))

Python: min = 10**12
max = 0
while(True):
    try:
        n = float(input())
        if min > n:
            min = n
        if max < n:
            max = n
    except:
        print(max - min)
        break

Python: # AOJ 0046 Differential
# Python3 2018.6.14 bal4u

data = []
while True:
	try:
		data.append(float(input()))
	except EOFError:
		break
print(max(data)-min(data))

Python: a=[]
while True:
    try:
        a.append(float(input()))
    except:break
print(max(a)-min(a))

Python: # coding: utf-8
# Here your code !
import sys
result = []
for line in sys.stdin:
    result.append(float(line))
a = max(result) - min(result)
print(a)

Python: A=[]
for i in range(0,5):
  a=float(input())
  A.append(a)

print(max(A)-min(B))

Python: import sys
l = []
for line in sys.stdin.readlines():
  l.append(float(line.replace('\n','')))
print(max(l) - min(l))

Python: list=[]
while True:
    try:
        mt=float(input())
    except:
        small=min(list)
        big=max(list)
        print(big-small)
        break
    list.append(mt)

Python: maxv, minv = 0, 10**6
while True:
    try:
        height = float(input())
    except:
        break
    maxv = height if maxv < height else maxv
    minv = height if minv > height else minv
print(maxv-minv)

Python: #!usr/bin/env python3
import sys
import math
import string
import collections
import fractions
import random
from operator import itemgetter
import itertools
from collections import deque
import copy
import heapq
import bisect

MOD = 10 ** 9 + 7
INF = float('inf')
input = lambda: sys.stdin.readline().strip()

sys.setrecursionlimit(10 ** 8)

height = list(map(float,open(0).read().split()))
print(max(height) - min(height))

Python: A=[]
for i in range(0,5):
  a=float(input())
  A.append(a)
 
print(max(A)-min(A))

Python: # coding=utf-8

###
### for atcorder program
###

import sys
import math

# math class
class mymath:
    ### pi
    pi = 3.14159265358979323846264338

    ### Prime Number
    def pnum_eratosthenes(self, n):
        ptable = [0 for i in range(n+1)]
        plist = []

        for i in range(2, n+1):
            if ptable[i]==0:
                plist.append(i)
                for j in range(i+i, n+1, i):
                    ptable[j] = 1
        return plist

    ### GCD
    def gcd(self, a, b):
        if b == 0:
            return a
        return self.gcd(b, a%b)

    ### LCM
    def lcm(self, a, b):
        return (a*b)//self.gcd(a,b)

    ### Mat Multiplication
    def mul(self, A, B):
        ans = []
        for a in A:
            c = 0
            for j, row in enumerate(a):
                c += row*B[j]
            ans.append(c)
        return ans

mymath = mymath()

### output class
class output:
    ### list
    def list(self, l):
        l = list(l)
        #print(" ", end="")
        for i, num in enumerate(l):
            print(num, end="")
            if i != len(l)-1:
                print(" ", end="")
        print()

output = output()

### input sample
#i = input()
#N = int(input())
#A, B, C = [x for x in input().split()]
#N, K = [int(x) for x in input().split()]
#inlist = [int(w) for w in input().split()]

#R = float(input())
#A.append(list(map(int,input().split())))

#for line in sys.stdin.readlines():
#    x, y = [int(temp) for temp in line.split()]

#abc list
#abc = [chr(ord('a') + i) for i in range(26)]

### output sample
#print("{0} {1} {2:.5f}".format(A//B, A%B, A/B))
#print("{0:.6f} {1:.6f}".format(R*R*math.pi,R*2*math.pi))
#print(" {}".format(i), end="")

def get_input():
    N = []
    while True:
        try:
            #N.append(input())
            #N.append(int(input()))
            N.append(float(input()))
        except EOFError:
            break
    return N

N = get_input()

print(max(N)-min(N))

Python: import sys
def main():
    m = [] #mountain

    for line in sys.stdin:
        m.append(float(line))

    m.sort()

    ans = m[-1] - m[0]
    print(ans)


if __name__ == "__main__":
    main()

Python: import sys

ms = []
try:
    for v in sys.stdin:
        ms.append(float(v))
except:
    print(max(ms)-min(ms))

Python: import sys
a=[float(e)for e in sys.stdin]
print(max(a)-min(a))

Python: height_lst = []

while True:
  try:
    height = float(input())
    height_lst.append(height)

  except EOFError:
    break

height_lst.sort()
print(height_lst[-1] - height_lst[0])

Python: import sys
a=[float(i) for i in sys.stdin]
print(max(a)-min(a))

Python: minv = 10000000
maxv = 0

while 1:
    try:
        n = float(input())
        if minv > n:
            minv = n
        if maxv < n:
            maxv = n

    except:
        break

print(maxv-minv)

Python: def multi_input():
    while True:
        try:
            yield float(input())
        except EOFError:
            break

a = list(multi_input())
print(max(a)-min(a))

Python: heightlist = []
while 1:
    try:
        height = float(input())
        heightlist.append(height)
    except:
        break

diff = max(heightlist) - min(heightlist)
print(diff)

Python: import sys
mi=10**7
ma=-1
for l in sys.stdin:
    mi=min(mi,float(l))
    ma=max(ma,float(l))
print(ma-mi)

Python: m = []

while True:
    try:
        m.append(float(input()))
    except:
        print(max(m) - min(m))
        break

Python: h0 = float(input())
min = h0
max = h0
while True:
    try:
        h = float(input())
    except:
        break
    if h<min:
        min = h
    if max<h:
        max = h
print(f'{max-min:.2f}')

Python: li = []
while 1:
	try: li.append(float(input()))
	except: break
print(max(li) - min(li))

Python: a = []
while True:
  try:
    n = float(input())
    a.append(n)
  except:
    break

print(max(a) - min(a))

Python: inputs = [float(i) for i in input()]

print(max(inputs) - min(inputs))

Python: Mon_lis = []
while True:
    try:
        Mon_lis.append(float(input()))
    except EOFError:
        print(max(Mon_lis) - min(Mon_lis))
        break

Python: data = []
while True:
    try:
        data.append(float(input()))
    except:
        break
print(max(data) - min(data))