#include using namespace std; /////////////////// メイン /////////////////// int main () { //////////////////// 入力 //////////////////// int x, y, z; cin >> x >> y >> z; //////////////// 出力変数定義 //////////////// int result = 0; //////////////////// 処理 //////////////////// result = min({x+z,y+z,(x+y+z)/2}); //////////////////// 出力 //////////////////// cout << result << endl; //////////////////// 終了 //////////////////// return 0; }