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