/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
int[] t = {-7,4,-12,1,5,-3,12,0,14,-2};
Ideone test = new Ideone();
int[] r = test.o(t,4);
for(int a : r)
}
int[]o(int[]a,int l){int i=0,o[]=new int[l];for(;i<a.length;)o[i%l]+=a[i++];return o;}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCWludFtdIHQgPSB7LTcsNCwtMTIsMSw1LC0zLDEyLDAsMTQsLTJ9OwoJCUlkZW9uZSB0ZXN0ID0gbmV3IElkZW9uZSgpOwoJCWludFtdIHIgPSB0ZXN0Lm8odCw0KTsKCQlmb3IoaW50IGEgOiByKQoJCQlTeXN0ZW0ub3V0LnByaW50bG4oYSk7Cgl9CgkKaW50W11vKGludFtdYSxpbnQgbCl7aW50IGk9MCxvW109bmV3IGludFtsXTtmb3IoO2k8YS5sZW5ndGg7KW9baSVsXSs9YVtpKytdO3JldHVybiBvO30KCQkKCQkKfQ==