#include <bits/stdc++.h>
using namespace std;
struct shoot {
  int wire_no;
  int bird_no;
};
int main() {
  int wires, shoot_count;
  cin >> wires;
  int bird_count[wires];
  for (int i = 0; i < wires; i++) cin >> bird_count[i];
  cin >> shoot_count;
  shoot shoot_data[shoot_count];
  for (int i = 0; i < shoot_count; i++)
    cin >> shoot_data[i].wire_no >> shoot_data[i].bird_no;
  int wire, current_birds_on_wire, birds_on_left, birds_on_right;
  for (int i = 0; i < shoot_count; i++) {
    wire = shoot_data[i].wire_no - 1;
    current_birds_on_wire = bird_count[wire];
    birds_on_left = shoot_data[i].bird_no - 1;
    birds_on_right = current_birds_on_wire - shoot_data[i].bird_no;
    bird_count[wire] = 0;
    if (!(wire < 0) || !(wire > shoot_count - 1)) {
      bird_count[wire - 1] += birds_on_left;
      bird_count[wire + 1] += birds_on_right;
    }
  }
  for (int i = 0; i < wires; i++) cout << bird_count[i] << endl;
  return 0;
}
