#include using namespace std; long long n, t; long long a[200000], b[200000]; int main() { cin >> n; for (int i = 0; i < n; i++) cin >> a[i]; for (int i = 0; i < n; i++) { cin >> t; a[i] += t; if (i == 0) b[i] = a[i]; else b[i] = b[i - 1] + a[i]; } for (int i = 0; i < n * 2; i++) { if (i == 0) t = 0; else if (i < n + 1) t = t + b[i - 1]; else t = t + b[n - 1] - b[i - n - 1] - n * a[i - n - 1]; cout << t; if (i < n * 2 - 1) cout << " "; else cout << endl; } }