a, b, c = map(int, input().split() ) print( a+b+c, "{:.2f}".formtat( (a+b+c)/3 ) )