#include <bits/stdc++.h>
using namespace std;
const int INF = int(1e9 + 7);
int main() {
  int n;
  cin >> n;
  int v[n];
  for (int i = 0; i < int(n); ++i) {
    cin >> v[i];
  }
  int m;
  cin >> m;
  while (m--) {
    int x, y;
    cin >> x >> y;
    x--;
    if (x > 0) {
      v[x - 1] += (y - 1);
    }
    if (x < n - 1) {
      v[x + 1] += (v[x] - y);
    }
    v[x] = 0;
  }
  for (int i = 0; i < int(n); ++i) {
    cout << v[i] << endl;
  }
  return 0;
}
