#include <bits/stdc++.h>
using namespace std;
long long d[200005], a[200005], dd[100005];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1, n, xx, x = 0, y = 0, cc, f, m, k;
  cin >> n >> m >> t;
  for (long long i = 1; i <= n; i++) cin >> a[i];
  for (long long i = 1; i <= n; i++) d[i] = a[i] - a[i - 1];
  pair<pair<long long, long long>, long long> p[m + 5];
  for (long long i = 1; i <= m; i++) {
    cin >> x >> y >> k;
    p[i] = {{x, y}, k};
  }
  long long l, r;
  while (t--) {
    cin >> l >> r;
    dd[l]++;
    dd[r + 1]--;
  }
  for (long long i = 1; i <= m; i++) {
    dd[i] += dd[i - 1];
  }
  for (long long i = 1; i <= m; i++) {
    l = p[i].first.first;
    r = p[i].first.second;
    k = dd[i] * p[i].second;
    d[l] += k;
    d[r + 1] -= k;
  }
  for (long long i = 1; i <= n; i++) {
    d[i] += d[i - 1];
    cout << d[i] << " ";
  }
  cout << endl;
  return 0;
}
