import sys n = list( map( int, sys.stdin.read().splitlines())) print(max(n) - min(n))