#include <bits/stdc++.h>
using namespace std;
int n, m, i, a, b, x[10001];
int main() {
  cin >> n;
  for (i = 1; i <= n; i++) cin >> x[i];
  cin >> m;
  for (i = 1; i <= m; i++) {
    cin >> a >> b;
    if (a == 1) {
      x[a + 1] = x[a + 1] + x[a] - b;
      x[a] = 0;
    } else if (a == n) {
      x[a - 1] = x[a - 1] + b - 1;
      x[a] = 0;
    } else {
      x[a - 1] = x[a - 1] + b - 1;
      x[a + 1] = x[a + 1] + x[a] - b;
      x[a] = 0;
    }
  }
  for (i = 1; i <= n; i++) cout << x[i] << endl;
}
