#!/usr/bin/env python3.5
import re
s = input()
r = re.findall(r'\d+', s)
r = [int(i) for i in r]
r.sort()
#print(r)
print(int(r[2])-int(r[0]))

91e6481ba14f1e2aa54b871901e98e602dd97ae8
<mask token>

<mask token>
r.sort()
print(int(r[2]) - int(r[0]))

<mask token>
s = input()
r = re.findall('\\d+', s)
r = [int(i) for i in r]
r.sort()
print(int(r[2]) - int(r[0]))

import re
s = input()
r = re.findall('\\d+', s)
r = [int(i) for i in r]
r.sort()
print(int(r[2]) - int(r[0]))

#!/usr/bin/env python3.5
import re
s = input()
r = re.findall(r'\d+', s)
r = [int(i) for i in r]
r.sort()
#print(r)
print(int(r[2])-int(r[0]))
