Hahyn
Giới thiệu
include<stdio.h>
include<math.h>
include<string.h>
include <stdbool.h>
define ll long long
#define For(i,a,b) \
int i; \
for(i=a;i<b;i++)
bool isPrime(int n){
if(n<2) return false;
For(i,2,sqrt(n)){
if(n%i==0) return false;
}
return true;
}
ll giaithua(ll n){
ll count=1;
n++;
while(n--){
count=n==0?1:n;
}
// printf("%lld\n",count);
return count;
}
void solve(){
// double n,m;
ll n,m,k=0;
// char n[10];
ll a[4],b=0,c;
scanf("%lld %lld %lld",&a[0],&a[1],&a[2]);
For(i,0,3){
For(j,i,3)
if(a[i]>a[j]){
int cmp=a[i];
a[i]=a[j];
a[j]=cmp;
}
}
// m=n;
// printf("%lld\n",n);
printf("%lld\n",a[2]-a[1]+2(a[1]-a[0]));
// printf("%lld\n",a);
}
int main(){
// int t;
// scanf("%d",&t);
// while(t--)
solve();
}