#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  long long int arr[n];
  for (long long int i = 0; i < n; i++) cin >> arr[i];
  long long int k, a, b;
  cin >> k;
  for (long long int i = 0; i < k; i++) {
    cin >> a >> b;
    long long int z = arr[a - 1];
    if (a != 1) {
      arr[a - 2] = arr[a - 2] + (b - 1);
    }
    arr[a - 1] = arr[a - 1] - b;
    if (a != n) {
      arr[a] = arr[a] + z - b;
    }
    arr[a - 1] = arr[a - 1] - (z - b);
  }
  for (long long int i = 0; i < n; i++) cout << arr[i] << " ";
  return 0;
}
