#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n;
  std::cin >> n;
  std::vector<int> a(n, 0);
  for (int z15 = 0; z15 < n; z15++) {
    std::cin >> a[z15];
  }
  int m;
  std::cin >> m;
  while (m--) {
    int x, y;
    std::cin >> x >> y;
    x--;
    int up = y - 1;
    int down = a[x] - y;
    a[x] = 0;
    if (x - 1 >= 0) {
      a[x - 1] += up;
    }
    if (x + 1 < n) {
      a[x + 1] += down;
    }
  }
  for (int z15 = 0; z15 < n; z15++) {
    std::cout << a[z15] << endl;
  }
  return 0;
}
