#include <bits/stdc++.h>
using namespace std;
void show(int arr[], int n) {
  for (int i = 0; i < n; i++) {
    cout << arr[i] << endl;
  }
}
int main() {
  int x[100];
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x[i];
  }
  int shots;
  cin >> shots;
  for (int i = 0; i < shots; ++i) {
    int index, position;
    cin >> index >> position;
    index--;
    if (index != 0) x[index - 1] += position - 1;
    if (index != n - 1) x[index + 1] += x[index] - position;
    x[index] = 0;
  }
  show(x, n);
  return 0;
}
