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