#include <bits/stdc++.h>
using namespace std;
long long a[100001], l[100001], r[100001], d[100001];
long long x[100001], y[100001];
int main(int argc, char *argv[]) {
  int n, m, k;
  size_t i;
  cin >> n >> m >> k;
  for (i = 0; i < n; ++i) cin >> a[i];
  for (i = 0; i < m; ++i) cin >> l[i] >> r[i] >> d[i];
  for (i = 0; i < k; ++i) cin >> x[i] >> y[i];
  for (i = 0; i < m; ++i) {
    l[i]--;
    r[i]--;
  }
  for (i = 0; i < k; ++i) {
    x[i]--;
    y[i]--;
  }
  long long temp[100001];
  long long curr_val = 0;
  fill(temp, temp + m, 0);
  for (i = 0; i < k; ++i) {
    temp[x[i]]++;
    temp[y[i] + 1]--;
  }
  for (i = 0; i < m; i++) {
    curr_val += temp[i];
    d[i] *= curr_val;
  }
  fill(temp, temp + n, 0);
  for (i = 0; i < m; ++i) {
    temp[l[i]] += d[i];
    temp[r[i] + 1] -= d[i];
  }
  curr_val = 0;
  for (i = 0; i < n; ++i) {
    curr_val += temp[i];
    a[i] += curr_val;
  }
  for (i = 0; i < n; ++i) cout << a[i] << " ";
  cout << endl;
  return 0;
}
