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