#include<cstdio>
int H[100010]={0},D[100010]={0};
int main()
{
freopen("thebigmatch.in","r",stdin);
freopen("thebigmatch.out","w",stdout);
int n,q;
scanf("%d",&n);
for (int i=1;i<=n;i++) scanf("%d",&H[i]);
for (int i=1;i<=n;i++) scanf("%d",&D[i]);
scanf("%d",&q);
for (int i=1;i<=q;i++)
{
int w,x,y,k;
scanf("%d",&w);
if (w==1) {for (int j=1;j<=n;j++) printf("%d %",H[j]);printf("\n");}
if (w==0)
{
scanf("%d%d%d",&x,&y,&k);
for (int j=x;j<=y;j++)
H[j]-=k-D[j];
}
}
}