#include <iostream>
using namespace std;
int findmax(int a, int b ,int c){
if(a>=b&&a>=c) return a;
else if(b>=a&&b>=c) return b;
else if(c>=a&&c>=b) return c;
else return 0;
}
int main() {
int a,b,c,k,l;
while (cin >>a>>b>>c) { // 注意 while 处理多个 case
k=a+b+c;
l=findmax(a,b,c)*2;
cout<<k-l;
}
return 0;
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号