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