#include <stdio.h>
int main() 
{
    double a,b,c=0.0;
    scanf("%lf %lf %lf",&a,&b,&c);
    printf("%.2lf %.2lf",a+b+c,(a+b+c)/3);
    return 0;
}