#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b,c;
while (cin >> a >> b>>c) { // 注意 while 处理多个 case
if(a+b+c == 0)return 0;
int max = a;
if(b>max)max=b;
if(c>max)max=c;
int sum=a+b+c;
cout<<sum-2*max<<endl;
}
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号