using System; using System.Collections.Generic; using static System.Console; using System.Linq; class yuki1 { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); static void Main() { var n = NN; var a = NList; var b = NList; var ab = new long[n]; for (var i = 0; i < n; ++i) ab[i] = a[i] + b[i]; var cum = new long[n]; cum[0] = ab[0]; for (var i = 1; i < n; ++i) cum[i] = cum[i - 1] + ab[i]; var c = new long[2 * n]; for (var i = 1; i <= n; ++i) c[i] = c[i - 1] + cum[i - 1]; for (var i = n + 1; i < 2 * n; ++i) c[i] = c[i - 1] - n * ab[i - n - 1] + cum[n - 1] - cum[i - n - 1]; WriteLine(string.Join(" ", c)); } }