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