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