#include <bits/stdc++.h>
using namespace std;
vector<string> vec_splitter(string second) {
  second += ',';
  vector<string> res;
  while (!second.empty()) {
    res.push_back(second.substr(0, second.find(',')));
    second = second.substr(second.find(',') + 1);
  }
  return res;
}
void debug_out(vector<string> __attribute__((unused)) args,
               __attribute__((unused)) int idx,
               __attribute__((unused)) int LINE_NUM) {
  cerr << endl;
}
template <typename Head, typename... Tail>
void debug_out(vector<string> args, int idx, int LINE_NUM, Head H, Tail... T) {
  if (idx > 0)
    cerr << ", ";
  else
    cerr << "Line(" << LINE_NUM << ") ";
  stringstream ss;
  ss << H;
  cerr << args[idx] << " = " << ss.str();
  debug_out(args, idx + 1, LINE_NUM, T...);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int tt = clock();
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  int m;
  cin >> m;
  for (int i = 0; i < m; i++) {
    int b, c;
    cin >> b >> c;
    b--;
    if (b != 0 and b != n - 1) {
      a[b - 1] += c - 1;
      a[b + 1] += a[b] - c;
      a[b] = 0;
    } else if (b == 0) {
      a[b + 1] += a[b] - c;
      a[b] = 0;
    } else {
      a[b - 1] += c - 1;
      a[b] = 0;
    }
  }
  for (auto k : a) cout << k << "\n";
  cerr << "TIME = " << (double)1.0 * (clock() - tt) / CLOCKS_PER_SEC
       << " seconds" << endl;
  return 0;
}
