#include <iostream>
#include <bits/stdc++.h>
#include <string>
#include <algorithm>
#include <cmath>

using namespace std;

#define rep(i,n) for(int i = 0; i < (int) n ; i++)

int main(){
        int a,b,c;
        cin >>  a >> b >> c;
        int min = a;
        if(b < min) min = b;
        if(c < min) min = c;
        cout << a + b + c - min << endl;
}

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

 
int main()
{
	
	int a[4] = {0};
	for(int i=0;i<3;i++) cin >> a[i];
	sort(a+0,a+3);
	
	cout << a[2] + a[1];
}