#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long i, k, a, b, x, t, cot = 0, cou = 0;
  long long tt, n, m;
  vector<int> bir;
  vector<pair<int, int>> shot;
  cin >> n;
  for (i = 0; i < n; ++i) {
    cin >> t;
    bir.push_back(t);
  }
  cin >> m;
  for (i = 0; i < m; ++i) {
    cin >> t >> tt;
    shot.push_back(make_pair(t - 1, tt));
  }
  for (i = 0; i < m; ++i) {
    t = shot[i].first;
    if (t + 1 < n) {
      bir[t + 1] += (bir[t] - shot[i].second);
    }
    if (t - 1 >= 0 && shot[i].second > 0) {
      bir[t - 1] += (shot[i].second - 1);
    }
    bir[t] = 0;
  }
  for (int w : bir) {
    cout << w << '\n';
  }
}
