#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i <= n - 1; ++i) {
    cin >> a[i];
  }
  int m;
  cin >> m;
  int x, y;
  for (int i = 1; i <= m; ++i) {
    cin >> x >> y;
    if (x - 2 >= 0) {
      a[x - 2] += y - 1;
    }
    if (x <= n - 1) {
      a[x] += a[x - 1] - y;
    }
    a[x - 1] = 0;
  }
  for (int i = 0; i <= n - 1; ++i) {
    cout << a[i] << endl;
  }
  return 0;
}
