#include <bits/stdc++.h>
using namespace std;
int a[102], b[101], c[101], n, m;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  cin >> m;
  for (int i = 1; i <= m; i++) cin >> b[i] >> c[i];
  for (int i = 1; i <= m; i++) {
    a[b[i] - 1] = a[b[i] - 1] + (c[i] - 1);
    a[b[i] + 1] = a[b[i] + 1] + (a[b[i]] - c[i]);
    a[b[i]] = 0;
  }
  for (int i = 1; i <= n; i++) cout << a[i] << " ";
}
