#include <bits/stdc++.h>
int main() {
  int numwire;
  scanf("%d", &numwire);
  int oskols[numwire + 2];
  for (int i = 1; i <= numwire; i++) {
    scanf("%d", &oskols[i]);
  }
  int cases;
  scanf("%d", &cases);
  for (int j = 1; j <= cases; j++) {
    int wire, position;
    scanf("%d %d", &wire, &position);
    if (wire - 1 >= 1) {
      oskols[wire - 1] += position - 1;
    }
    if (wire + 1 <= numwire) {
      oskols[wire + 1] += oskols[wire] - position;
    }
    oskols[wire] = 0;
  }
  for (int k = 1; k <= numwire; k++) {
    printf("%d\n", oskols[k]);
  }
  return 0;
}
