#include <bits/stdc++.h>
#define up(i,a,b) for(int (i) = (a);(i)<=(b);++(i))
#define down(i,b,a) for(int (i) = (b);i>=(a);--i)
#define bits(x,i) (((x) >> (i)) & 1)
#define mid ((l+r)/2)
#define pr pair<int,int>
using namespace std;
int a[3];
int main(){
    ios_base::sync_with_stdio(0); cin.tie(0);
	cin >> a[0] >> a[1] >> a[2];
	sort(a,a+3);
	cout << a[1] + a[2];
}
#include <bits/stdc++.h>
using namespace std;

int main() {
	int A, B, C;
	cin >> A >> B >> C;
	cout << A+B+C - min(A,min(B,C)) << endl;
}