#include <bits/stdc++.h>
using namespace std;
long long l[123456], r[123456], d[123456];
long long v1[123456], v2[123456], a[123456];
int main(void) {
  long long n, m, k, x, y;
  cin >> n >> m >> k;
  for (long long i = 1LL; i <= n; i++) cin >> a[i];
  for (long long i = 1LL; i <= m; i++) {
    cin >> l[i] >> r[i] >> d[i];
  }
  for (long long i = 1LL; i <= k; i++) {
    cin >> x >> y;
    v1[x]++;
    v1[y + 1]--;
  }
  for (long long i = 1LL; i <= m; i++) v1[i] += v1[i - 1];
  for (long long i = 1LL; i <= m; i++) {
    v2[l[i]] += v1[i] * d[i];
    v2[r[i] + 1] -= v1[i] * d[i];
  }
  for (long long i = 1LL; i <= n; i++) v2[i] += v2[i - 1];
  for (long long i = 1LL; i <= n; i++) cout << a[i] + v2[i] << " ";
  return 0;
}
