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