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