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