#include <bits/stdc++.h>
using namespace std;
int a[200];
int main() {
  int n, m, xi, yi;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  cin >> m;
  for (int i = 0; i < m; i++) {
    cin >> xi >> yi;
    --xi;
    int right = a[xi] - yi, left = yi - 1;
    if (xi >= 1) a[xi - 1] += left;
    if (xi <= n - 1) a[xi + 1] += right;
    a[xi] = 0;
  }
  for (int i = 0; i < n; i++) {
    cout << a[i] << endl;
  }
}
