#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> vec;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    vec.push_back(x);
  }
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    int x, y;
    cin >> x >> y;
    if (x == 1) {
      vec[1] += (vec[0] - y);
      vec[0] = 0;
    } else if (x == n) {
      vec[x - 2] += (y - 1);
      vec[x - 1] = 0;
    } else {
      vec[x - 2] += y - 1;
      vec[x] += (vec[x - 1] - y);
      vec[x - 1] = 0;
    }
  }
  for (auto item : vec) {
    cout << item << endl;
  }
}
