#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, i, j, x, y;
  cin >> n;
  vector<int> a(n);
  for (i = 0; i < n; i++) cin >> a[i];
  cin >> m;
  for (i = 0; i < m; i++) {
    cin >> x >> y;
    x--;
    y--;
    int l = a[x], l1 = y, l2 = l - y - 1;
    a[x] = 0;
    if ((x != 0) && (x != n - 1)) {
      a[x - 1] += l1;
      a[x + 1] += l2;
    } else {
      if (x == 0)
        a[x + 1] += l2;
      else
        a[x - 1] += l1;
    }
  }
  for (i = 0; i < n; i++) cout << a[i] << "\n";
}
