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