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