#include <bits/stdc++.h>
using namespace std;
template <class T>
inline T sqr(T a) {
  return a * a;
}
int ans[444], a[444];
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  for (register int i = (0); i < (int)(n); (i)++) cin >> a[i];
  int m;
  cin >> m;
  for (register int i = (0); i < (int)(m); (i)++) {
    int x, y;
    cin >> x >> y;
    --x;
    if (x != 0) a[x - 1] += y - 1;
    a[x + 1] += a[x] - y;
    a[x] = 0;
  }
  for (register int i = (0); i < (int)(n); (i)++) cout << a[i] << endl;
  return 0;
}
