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