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