#include <bits/stdc++.h>
using namespace std;
int a[500], n, m;
int main() {
  cin >> n;
  for (int i = 1; i < n + 1; i++) cin >> a[i];
  cin >> m;
  while (m--) {
    int i, j;
    cin >> i >> j;
    if (i != 1) a[i - 1] += j - 1;
    if (i != n) a[i + 1] += a[i] - j;
    a[i] = 0;
  }
  for (int i = 1; i < n + 1; i++) cout << a[i] << "\n";
}
