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