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