#include <bits/stdc++.h>
int main() {
  int wires;
  scanf("%d", &wires);
  int oskols[wires];
  for (int i = 0; i < wires; i++) scanf("%d", &oskols[i]);
  int m;
  scanf("%d", &m);
  for (int i = 0; i < m; i++) {
    int shot_bird, shot_wire, left, right;
    scanf("%d%d", &shot_wire, &shot_bird);
    left = shot_bird - 1;
    right = oskols[shot_wire - 1] - shot_bird;
    oskols[shot_wire - 1] = 0;
    oskols[shot_wire - 2] += left;
    oskols[shot_wire] += right;
  }
  for (int i = 0; i < wires; i++) printf("%d\n", oskols[i]);
}
