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


  

int main() {
	ll a,b,c;
	cin>>a>>b>>c;
	
	ll x = max(a,max(b,c));
	
	if(a == x) a = -1;
	else if(b == x) b = -1;
	else if(c == x) c = -1;
	
	x += max(a,max(b,c));
	cout<<x<<"\n";
}



#include<bits/stdc++.h>
using namespace std;
// #define int  long long int
#define ld   long double
#define F    first
#define S    second
#define P    pair<int,int>
#define pb   push_back
#define mod  1000000007
#define endl '\n'
const int N = 1e5 + 5; //change it when n7eeded
void solve() {
    int a[3];
    for (int i = 0; i < 3; i++) {
        cin >> a[i];
    }

    sort(a, a + 3);
    cout << a[1] + a[2] << endl;
}
int32_t main() {
    ios_base:: sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
    // int t; cin >> t; while (t--)
    solve();
    return 0;
}