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