import std.stdio, std.array, std.string, std.conv, std.algorithm; import std.typecons, std.range, std.random, std.math, std.container; import std.numeric, std.bigint, core.bitop; void main() { auto N = readln.chomp.to!int; auto A = readln.split.map!(to!long).array; auto B = readln.split.map!(to!long).array; long s = 0; long t = 0; long[] ans; foreach (i; 0..N) { ans ~= t; t += A[i] + B[i] + s; s += A[i] + B[i]; } foreach (i; 0..N) { ans ~= t; t -= N*A[i] + N*B[i]; s -= A[i] + B[i]; t += s; } ans.map!(to!string).join(" ").writeln; }