#include<iostream>
using namespace std;
int main(){
  int A,B,C;
  cin >> A >> B >> C;
  int AB,AC,BC;
  AB = A + B;
  AC = A + C;
  BC = B + C;
  if(AB >= AC && AB >= BC){
    cout << AB;
  }
  else if(AC >= AB && AC > BC){
    cout << AC;
  }
  else{
    cout << BC;
  }
  return 0;
}
///******* In the name of Allah *******///

#include <bits/stdc++.h>
using namespace std;
#define fastio ios_base::sync_with_stdio(false), cin.tie(NULL);
#define nl '\n'

void Ok()
{
    long int a[13],b,c, d, e, f, g, h, t, i, j, k, l, m, n, Mn, Mx;
    long int ans_1, ans_2, ans_3, cnt_1, cnt_2, cnt_3, flag_1, flag_2, flag_3, temp, sum;
    double aa, bb, cc, dd, ee, ff, gg;
    char aaa, bbb, ccc, ddd;
    string spc, in, keyword;

    fastio;

    cin>>a[1]>>a[2]>>a[3];
    sort(a+1,a+3+1);

    sum = a[2] + a[3];
    cout<<sum<<nl;
    
    return;
}

int main()
{
    Ok();

    return 0;
}