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