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