#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0);
  int t, x, y, m;
  cin >> t;
  int a[t + 1];
  for (int i = 1; i <= t; i++) cin >> a[i];
  cin >> m;
  while (m--) {
    cin >> x >> y;
    if ((x - 1) != 0) a[x - 1] += (y - 1);
    if (x + 1 != (t + 1)) a[x + 1] += (a[x] - y);
    a[x] = 0;
  }
  for (int i = 1; i <= t; i++) cout << a[i] << endl;
}
