#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1e9 + 7;
struct oper {
  long long int l, r, d;
};
int main() {
  std::ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long int m, k, n;
  cin >> n >> m >> k;
  std::vector<long long int> a(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  vector<oper> op(m);
  for (int i = 0; i < m; ++i) {
    cin >> op[i].l >> op[i].r >> op[i].d;
    op[i].l--, op[i].r--;
  }
  std::vector<long long int> tmp(m + 1);
  long long int q, b;
  for (int i = 0; i < k; ++i) {
    cin >> q >> b;
    --q, --b;
    tmp[q]++, tmp[b + 1]--;
  }
  q = 0;
  for (int i = 0; i < m; ++i) {
    q += tmp[i];
    op[i].d *= q;
  }
  tmp.resize(n + 1, 0);
  fill(tmp.begin(), tmp.end(), 0);
  for (int i = 0; i < m; ++i) {
    tmp[op[i].l] += op[i].d;
    tmp[op[i].r + 1] -= op[i].d;
  }
  q = 0;
  for (int i = 0; i < n; ++i) {
    q += tmp[i];
    cout << a[i] + q << ' ';
  }
  return 0;
}
