import java.util.Arrays; import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); System.out.println(solve(new int[]{r, g, b})); sc.close(); } public static int solve (int[] nums) { Arrays.sort(nums); //System.out.println(Arrays.toString(nums)); int ret = 0; if (nums[0] != 0) { ret = nums[0]; nums[0] = 0; nums[1] -= ret; nums[2] -= ret; //System.out.println("0 : " + ret); return ret + solve(nums); } if (nums[2] == 0) return ret; if (nums[1] == 0) return ret + nums[2] / 5; if (nums[2] - nums[1] >= 2) { int sub = nums[2] - nums[1]; ret += sub / 2; nums[1] -= ret; nums[2] -= sub + ret; //System.out.println("1 : " + ret); return ret + solve(nums); } else if (nums[2] - nums[1] == 1) return nums[2] % 2 == 1 ? (nums[2] - 1) / 2 : (nums[1] - 1) / 2; else return nums[2] % 4 == 0 ? nums[2] / 2 : (nums[2] - 1) / 2; } }