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