package no091; import java.util.Arrays; import java.util.Scanner; public class Main { public static final int MAX = 10000000; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] m = new int[3]; for(int i=0;i<3;i++) { m[i] = sc.nextInt(); } for(int i=MAX;i>=0;i--) { int[] n = Arrays.copyOf(m, 3); int need = 0; for(int j=0;j<3;j++) { if (n[j] < i) { need += i - n[j]; n[j] = 0; }else{ n[j] -= i; } } //System.out.println(i + "," + need + "," + Arrays.toString(n)); int amari = 0; for(int j=0;j<3;j++) { amari += n[j] / 2; } if (amari >= need) { System.out.println(i); break; } } } }