#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s, b, l;
  cin >> n;
  int* w = new int[n];
  for (int i = 0; i < n; i++) {
    cin >> w[i];
  }
  cin >> s;
  for (int i = 0; i < s; i++) {
    cin >> l >> b;
    (l == 1 ? w[1] += w[0] - b, w[0] = 0
            : ((l == n)     ? w[n - 2] += w[n - 1] - (w[l - 1] - b) - 1,
               w[n - 1] = 0 : w[l - 2] += w[l - 1] - (w[l - 1] - b) - 1,
               w[l] += w[l - 1] - b, w[l - 1] = 0));
  }
  for (int i = 0; i < n; i++) cout << w[i] << endl;
}
