#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c;
  cin >> n;
  int* arr = new int[n];
  for (int i = 0; i < n; i++) cin >> arr[i];
  cin >> c;
  for (int i = 0; i < c; i++) {
    int arrID;
    int birdID;
    cin >> arrID >> birdID;
    arrID--;
    birdID--;
    if (arrID != 0) arr[arrID - 1] += birdID;
    if (arrID != n - 1) arr[arrID + 1] += (arr[arrID] - 1) - birdID;
    arr[arrID] = 0;
  }
  for (int i = 0; i < n; i++) cout << arr[i] << endl;
  return 0;
}
