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