#include <stdio.h>

int main() {
    int x, y, z;
    scanf("%d %d %d", &x, &y, &z);

    int sum = x + y + z;
    float average = (float)sum / 3;

    printf("%d\n", sum);
    printf("%.2f\n", average);

    return 0;
}

