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