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