#include <iostream> using namespace std; int main() { int a, b,c; while (cin >> a >> b>>c) { if(a&&b&&c) cout<<a+b+c-max(a,max(b,c))*2<<endl; } }