#include<iostream>
using namespace std;
long long a,b,c;
main(){
cin>>a>>b>>c;
cout<<min((a+b+c)/3,min(a+b,min(b+c,a+c)));}
I2luY2x1ZGU8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmxvbmcgbG9uZyBhLGIsYzsKbWFpbigpewoJY2luPj5hPj5iPj5jOwoJIGNvdXQ8PG1pbigoYStiK2MpLzMsbWluKGErYixtaW4oYitjLGErYykpKTt9