#include <bits/stdc++.h>
 
#define ff first
#define ss second
#define mp make_pair
 
using namespace std;
 
typedef long long ll;

int main() {
    int v[3];
 
    scanf("%d%d%d", &v[0], &v[1], &v[2]);
    sort(v, v+3);
    printf("%d\n", v[1]+v[2]);

    return 0;
}
#include <iostream>
using namespace std;

int main (){

    int a,b,c;
    cin >> a >> b >> c;

    int cont = 0;

    if(a>=b){
        cont +=a;
        if(b>=c){
            cont +=b;
        }
        else{
                cont +=c;
        }
    }
    else {
        if(b>=c){
            cont +=b;
            if(c>=a){
                cont +=c;
            }
            else{
                cont +=a;
            }
        }
        else{
            cont +=c;
            if(a>=b){
                cont +=a;
            }
            else{
                cont +=b;
            }
        }
    }

    cout << cont << endl;


    return 0;   
}