import java.util.*; import java.io.*; public class Main{ static final Reader sc = new Reader(); static final PrintWriter out = new PrintWriter(System.out,false); public static void main(String[] args) throws Exception { int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); int ans = Math.min(r,Math.min(g,b)); r -= ans; g -= ans; b -= ans; int x; int y; if(r==0){ x = g; y = b; } else if(g==0){ x = r; y = b; } else{ x = r; y = g; } if(x