#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, wire_num, bird_pos, i, j;
  cin >> n;
  long long a[n + 2];
  for (i = 1; i <= n; i++) cin >> a[i];
  cin >> m;
  for (j = 1; j <= m; j++) {
    cin >> wire_num >> bird_pos;
    a[wire_num - 1] = a[wire_num - 1] + bird_pos - 1;
    if (a[wire_num] >= bird_pos)
      a[wire_num + 1] = a[wire_num + 1] + (a[wire_num] - bird_pos);
    else
      a[wire_num + 1] = a[wire_num + 1] + (bird_pos - a[wire_num]);
    a[wire_num] = 0;
  }
  for (i = 1; i <= n; i++) cout << a[i] << endl;
  return 0;
}
