#include <iostream>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
cout << max(max(a, b), c) + min(min(a, b), c);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCmludCBtYWluKCl7CiAgICBpbnQgYSwgYiwgYzsKICAgIGNpbiA+PiBhID4+IGIgPj4gYzsKICAgIGNvdXQgPDwgbWF4KG1heChhLCBiKSwgYykgKyBtaW4obWluKGEsIGIpLCBjKTsKICAgIHJldHVybiAwOwp9