#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, arr[200] = {0};
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> arr[i];
  }
  int m, a, b;
  cin >> m;
  for (int i = 1; i <= m; i++) {
    cin >> a >> b;
    if (a != n) {
      arr[a + 1] += arr[a] - b;
    }
    if (a != 1) {
      arr[a - 1] += b - 1;
    }
    arr[a] = 0;
  }
  for (int i = 1; i <= n; i++) printf("%d\n", arr[i]);
  return 0;
}
