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