#include <stdio.h>
int main()
{
	float a = 0, b = 0, c = 0;
	float sum = 0, average = 0;
	while (scanf("%f %f %f", &a, &b, &c) != EOF)
	{
		sum = a + b + c;
		average = (a + b + c) / 3;
		printf("%.2f %.2f", sum, average);
	}
	return 0;
}