#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 100;
int as[MAX_N];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", as + i);
  int m;
  scanf("%d", &m);
  while (m--) {
    int x, y;
    scanf("%d%d", &x, &y);
    x--, y--;
    if (x > 0) as[x - 1] += y;
    if (x + 1 < n) as[x + 1] += as[x] - (y + 1);
    as[x] = 0;
  }
  for (int i = 0; i < n; i++) printf("%d\n", as[i]);
  return 0;
}
