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