import sys



s = list(map(float, sys.stdin))

print(max(s)-min(s))
import sys



s = sorted(map(float, sys.stdin))

print(s[-1]-s[0])
import sys

s = list(map(float, sys.stdin))
print(max(s) - min(s))

import sys

s = sorted(map(float, sys.stdin))
print(s[-1] - s[0])

-s = list(map(float, sys.stdin)) -print(max(s) - min(s)) +s = sorted(map(float, sys.stdin)) +print(s[-1] - s[0])