#include <stdio.h>
int max(int a,int b){
	if(a>b)return a;
	else return b;
}
int main(){
	int a,b,c;
	while(scanf("%d%d%d",&a,&b,&c)!=EOF)
	printf("%d\n",a+b+c-2*max(a,max(b,c)));
	return 0;
}