#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ai, m, xi, yi, leftside_birds, rightside_birds;
  cin >> n;
  vector<int> wire;
  for (int i = 0; i < n; i++) {
    cin >> ai;
    wire.push_back(ai);
  }
  cin >> m;
  for (int i = 0; i < m; i++) {
    cin >> xi >> yi;
    leftside_birds = yi - 1;
    rightside_birds = (wire[xi - 1] - yi);
    if (xi > 1) {
      wire[xi - 2] += leftside_birds;
    }
    if (xi < n) {
      wire[xi] += rightside_birds;
    }
    wire[xi - 1] = 0;
  }
  for (int i = 0; i < n; i++) {
    cout << wire[i] << endl;
  }
  return 0;
}
