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