import java.util.Scanner; public class N40 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int d=sc.nextInt(); int[] a=new int[d+1]; int dd=-1; int[] b=new int[3]; int[] buf=new int[d+1]; for(int i=d;i>=0;i--){ buf[i]=sc.nextInt(); } for(int i=0;i<=d;i++){ a[i]+=buf[i]; if(i=ind;i--){ System.out.print(a[i]+" "); } } } }