#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, k, q, x, y, a[111];
  cin >> n;
  a[n + 1] = 0;
  a[0] = 0;
  for (i = 1; i <= n; i++) {
    cin >> a[i];
  }
  cin >> q;
  while (q--) {
    cin >> x >> y;
    j = a[x];
    a[x - 1] += (y - 1);
    a[x + 1] += (j - y);
    a[x] = 0;
  }
  for (i = 1; i <= n; i++) cout << a[i] << "\n";
  return 0;
}
