#include <iostream>
using namespace std;

int main() {
	int c,a,b;
	cin >> a >> b>> c;
	cout << a-b+c;
	// your code goes here
	return 0;
}
#include<bits/stdc++.h>
#define rep(i, m, n) for(int i = m; i < (int)(n); i++)
#define _GLIBCXX_DEBUG
using namespace std;
using ll = long long;

int main() {
    int a, b, c;
    cin >> a >> b >> c;

    vector<int> m(3);
    m[0] = a;
    m[1] = b;
    m[2] = c;

    sort(m.rbegin(), m.rend());

    int ans = 0;
    rep(i, 0, 2) ans += m[i];

    cout << ans << endl;
}