#!/usr/bin/perl

$how = 4;

while(<>){
    split;
    for $i (0..14){
	$tot[$i]+=$_[$i];
    }
    $ct++;
    if($ct == $how){
	for $i (0..14){
	    print $tot[$i]/$how, " ";
	    $tot[$i] = 0;
	}
	print "\n";
	$ct = 0;
    }
}
