#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t, u, a, b;
  cin >> n;
  int S[n];
  for (int i = 0; n > i; i++) {
    cin >> S[i];
  }
  cin >> t;
  int T[t], R[t];
  for (int i = 0; t > i; i++) {
    cin >> T[i] >> R[i];
  }
  for (int i = 0; t > i; i++) {
    u = T[i];
    a = R[i] - 1;
    b = S[u - 1] - R[i];
    S[u - 2] = S[u - 2] + a;
    S[u] = S[u] + b;
    S[u - 1] = 0;
  }
  for (int i = 0; n > i; i++) {
    cout << S[i] << endl;
  }
}
