#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  int arr[n], i, m;
  for (i = 1; i <= n; i++) scanf("%d", &arr[i]);
  scanf("%d", &m);
  while (m > 0) {
    int x, y, left, right;
    scanf("%d%d", &x, &y);
    left = y - 1;
    right = arr[x] - y;
    if (x == 1) {
      arr[x + 1] += right;
      arr[x] = 0;
    } else if (x == n) {
      arr[x - 1] += left;
      arr[x] = 0;
    } else {
      arr[x - 1] += left;
      arr[x + 1] += right;
      arr[x] = 0;
    }
    m--;
  }
  for (i = 1; i <= n; i++) printf("%d\n", arr[i]);
  return 0;
}
