#include <stdio.h>

int main() {

    float arr[5][5] = {0};//定义一个二维数组
    int i = 0;
    for (i = 0; i <= 4; i++)//输入数据
    {
        int j = 0;
        for (j = 0; j<= 4; j++)
        {
            scanf("%f", &arr[i][j]);
        }
    }

    for (i = 0; i <= 4; i++)//输出数据
    {
        float total = 0;//计算总分
        int j = 0;
        for (j = 0; j<= 4; j++)
        {
            total += arr[i][j];
            printf("%.1f ", arr[i][j]);
        }
        printf("%.1f", total);
        printf("\n");//每一行结束
    }

    return 0;
}