#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int MAX = 100010;
const double eps = 1e-9;
long long int n, m, x, y, k;
long long int a[MAX], op[MAX], l[MAX], r[MAX], d[MAX], op1[MAX], num[MAX];
int main() {
  cin >> n >> m >> k;
  for (int i = 1, _n = (n + 1); i < _n; ++i) cin >> a[i];
  for (int i = 1, _n = (m + 1); i < _n; ++i) cin >> l[i] >> r[i] >> d[i];
  for (int i = 1, _n = (k + 1); i < _n; ++i) {
    cin >> x >> y;
    op[x]++;
    op[y + 1]--;
  }
  long long int v = 0;
  for (int i = 1, _n = (m + 1); i < _n; ++i) {
    v += op[i];
    num[i] = v;
  }
  for (int i = 1, _n = (m + 1); i < _n; ++i) {
    op1[l[i]] += d[i] * num[i];
    op1[r[i] + 1] -= d[i] * num[i];
  }
  long long int tmp = 0;
  for (int i = 1, _n = (n + 1); i < _n; ++i) {
    tmp += op1[i];
    a[i] += tmp;
  }
  for (int i = 1, _n = (n + 1); i < _n; ++i) cout << a[i] << " ";
  cout << endl;
  return 0;
}
