#include<iostream>
using namespace std;

int main()
{
    int a,b,c;
    
    cin>>a>>b>>c;
    int s1=a+b;
    int s2=b+c;
    int s3=c+a;
    
    if((s1>s2)&&(s1>s3))
    {
       cout<<s1;
    }
    else if((s2>s3)&&(s2>s1))
    {
       cout<<s2;
    }
    else
    {
       cout<<s3;
    }
    
    return 0;
}
     
     
#include<bits/stdc++.h>
#define int long long

using namespace std;

signed main(){
    int arr[3];
    for(int i=0;i<3;i++){
        cin>>arr[i];
    }
    sort(arr,arr+3);
    int ans = arr[1] + arr[2];
    cout<<ans;
    return 0;
}