import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int[] arr = new int[3]; for (int i = 0; i < 3; i++) { arr[i] = sc.nextInt(); } Arrays.sort(arr); int count = arr[0]; arr[1] -= arr[0]; arr[2] -= arr[0]; arr[0] = 0; int left = 0; int right = arr[2]; while (right - left > 1) { int m = (left + right) / 2; int a = arr[0] - m; int b = arr[1] - m; int c = arr[2] - m; if (b < 0) { if (a + b + c / 2 >= 0) { left = m; } else { right = m; } } else if (a < 0) { if (b / 2 + c / 2 + a >= 0) { left = m; } else { right = m; } } else { left = m; } } System.out.println(count + left); } }