#include <bits/stdc++.h>
using namespace std;
const int MX = 105;
int n, a[MX], m;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  cin >> m;
  while (m--) {
    int x, y;
    cin >> x >> y;
    a[x - 1] += y - 1;
    a[x + 1] += a[x] - y;
    a[x] = 0;
  }
  for (int i = 1; i <= n; i++) cout << a[i] << '\n';
  return 0;
}
