#include <bits/stdc++.h>
using namespace std;
bool palindrome(string s) {
  string ss = s;
  reverse(s.begin(), s.end());
  if (s == ss) return 1;
  return 0;
}
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n, arr[105], m, x[105], y[105];
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  cin >> m;
  for (int i = 0; i < m; i++) {
    cin >> x[i] >> y[i];
  }
  for (int i = 0; i < m; i++) {
    if ((x[i] - 1) > 0) arr[x[i] - 2] += (y[i] - 1);
    if (x[i] < n) arr[x[i]] += (arr[x[i] - 1] - y[i]);
    arr[x[i] - 1] = 0;
  }
  for (int i = 0; i < n; i++) {
    cout << arr[i] << endl;
  }
  return 0;
}
