CF478C Table Decorations

题目描述

您正在为宴会装饰桌子,有 $r$ 个红色,$g$ 个绿色和 $b$ 蓝色的气球,一张桌子需要三个颜色不完全相同的气球来装饰。 您需要求出可以用所需方式进行装饰的桌子的最大数量 $t$。

输入格式

单行包含三个整数 $r,g,b (0

输出格式

输出一个整数 $t$ 表示可以按要求的方式装饰的桌子的最大数量。

说明/提示

In the first sample you can decorate the tables with the following balloon sets: "rgg", "gbb", "brr", "rrg", where "r", "g" and "b" represent the red, green and blue balls, respectively.