#include <bits/stdc++.h>
using namespace std;

#define stp(var, init, end) for (auto var = init; var < end; ++var)
#define stpe(var, init, end) for (auto var = init; var <= end; ++var)
#define stpi(iter, array) for (auto iter = array.begin(); iter != array.end(); ++iter)
#define ll long long

int main(void)
{
    int a, b, c;
    cin >> a >> b >> c;
    cout << max(max(a + b, b + c), c + a);
    return 0;
}
#include<bits/stdc++.h>
using namespace std;
int a,b,c;
int main()
{
	cin>>a>>b>>c;
	if(a==b)cout<<c;
	else if(b==c)cout<<a;
	else if(a==c)cout<<b;
	else cout<<0;
	return 0;
}