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