#include using namespace std; int main(){ long long R,G,B; cin >> R >> G >> B; cout << min({(R+G+B)/3, R+G, R+B, G+B}) << '\n'; }