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