#include <bits/stdc++.h>
using namespace std;
long long arr[10000001];
int main() {
  int n, arr[101], m, x, y;
  cin >> n;
  for (int i = 1; i <= n; ++i) cin >> arr[i];
  cin >> m;
  while (m--) {
    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] << endl;
}
