import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        for(int i = 1; i <= 5; i++) {
            double[] arr = new double[5];
            for(int j = 0; j < arr.length; j++) {
                arr[j] = scan.nextDouble();
            }
            
            double totalScore = 0;
            for(int j = 0; j < arr.length; j++) {
                System.out.printf("%.1f ", arr[j]);
                totalScore += arr[j];
            }
            System.out.println(totalScore);
        }
    }
}