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