#include<iostream>
#include<bits/stdc++.h>
#define forf(i,start,n,increment) for(int i = start;i<n;i+=increment)
#define all(i) i.begin(),i.end()
#define traverse(container,it) for(typeof(container.begin()) it = container.begin();it != container.end();it++)
using namespace std;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    vector<int>v(3);
    cin>>v[0]>>v[1]>>v[2];
    sort(all(v));
    cout<<v[2]+v[1];
    return 0;
}
#include <bits/stdc++.h>
using namespace std;

int main(){
    int a, b, c; cin >> a >> b >> c;
  
  	if((a >= b && b >= c) || (b >= a && a >= c) ) cout << a + b << endl;
  	else if((a >= c && c >= b) || (c >= a && a >= b) ) cout << a + c << endl;
  	else if((c >= b && b >= a) || (b >= c && c >= a) ) cout << b + c << endl;

    return 0;
}