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