#include int main() { int i, N, A[200001], B[200001]; scanf("%d", &N); for (i = 1, A[0] = 0; i <= N; i++) scanf("%d", &(A[i])); for (i = 1, B[0] = 0; i <= N; i++) scanf("%d", &(B[i])); long long sum[2] = {}; for (i = 1; i <= N; i++) { printf("%lld ", sum[1]); sum[0] += A[i] + B[i]; sum[1] += sum[0]; } for (; i < N * 2; i++) { printf("%lld ", sum[1]); sum[0] -= (long long)(A[i-N] + B[i-N]) * (N + 1) - (long long)(A[i-N-1] + B[i-N-1]) * N; sum[1] += sum[0]; } printf("%lld\n", sum[1]); fflush(stdout); return 0; }