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