#include <bits/stdc++.h>
using namespace std;
int nBox, testC, iBox, nBird, A[109];
int main() {
  scanf("%d", &nBox);
  for (int i = 0; i < nBox; ++i) scanf("%d", &A[i]);
  scanf("%d", &testC);
  for (int i = 0; i < testC; ++i) {
    scanf("%d%d", &iBox, &nBird);
    --iBox;
    if (iBox != 0) A[iBox - 1] += nBird - 1;
    if (iBox != nBox - 1) A[iBox + 1] += A[iBox] - nBird;
    A[iBox] = 0;
  }
  for (int i = 0; i < nBox; ++i) printf("%d\n", A[i]);
  return 0;
}
