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