X,Y,Z = map(int, input().split()) print(min((X+Y+Z)//2, X+Z, Y+Z))