#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  long long Sum[n];
  for (int i = 0; i < n; i++) {
    cin >> Sum[i];
  }
  long long m;
  cin >> m;
  long long xi[m], yi[m];
  for (int i = 0; i < m; i++) {
    cin >> xi[i] >> yi[i];
    if (xi[i] - 2 >= 0) {
      Sum[xi[i] - 2] += yi[i] - 1;
    }
    if (xi[i] < n) {
      Sum[xi[i]] += Sum[xi[i] - 1] - yi[i];
    }
    Sum[xi[i] - 1] = 0;
  }
  for (int i = 0; i < n; i++) {
    cout << Sum[i] << endl;
  }
  return 0;
}
