using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program{ const int mod=(int)1e9+7; const double eps=1e-11; static void Main(){ Sc sc=new Sc(); var s=sc.Ia; var a=sc.Ia; var t=sc.S; var h=new int[s[0]]; int l=0,r=0,p=0,g=0; for(int i = 0;i=s[0]-1){ int z=a.Sum(); h[g]=z; Console.WriteLine("{0}",String.Join(" ",h)); } else{ for(int i = 0;i<=l;i++) { h[l]+=a[i]; } for(int i = s[0]-r-1;i(int n,Func f){var a=new T[n];for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i