#include <bits/stdc++.h>
using namespace std;
const unsigned int MODULO = 1000000007;
const int INF = 100000000;
template <class T>
T gcd(T a, T b) {
  return b ? gcd(b, a % b) : a;
}
int main() {
  int n;
  cin >> n;
  int a[100];
  for (int i = 0; i < (n); i++) cin >> a[i];
  int m;
  cin >> m;
  for (int i = 0; i < (m); i++) {
    int x, y;
    cin >> x >> y;
    x--;
    if (x != 0) a[x - 1] += y - 1;
    if (x != n - 1) a[x + 1] += a[x] - y;
    a[x] = 0;
  }
  for (int i = 0; i < (n); i++) {
    cout << a[i] << endl;
  }
  return 0;
}
