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