#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie();
  cout.tie();
  int n, q, i;
  cin >> n;
  int arr[106] = {};
  for (i = 1; i <= n; i++) {
    cin >> arr[i];
  }
  cin >> q;
  int x, y;
  while (q--) {
    cin >> x >> y;
    arr[x - 1] += (y - 1);
    arr[x + 1] += (arr[x] - y);
    arr[x] = 0;
  }
  for (i = 1; i <= n; i++) {
    cout << arr[i] << "\n";
  }
  return 0;
}
