#include <bits/stdc++.h>
using namespace std;
long long ara[1000001], bar[1000000];
int main() {
  ;
  (ios_base::sync_with_stdio(false), cin.tie(NULL));
  ;
  long long t;
  t = 1;
  while (t--) {
    long long n, m, k;
    cin >> n >> m >> k;
    long long a[n + 1], l[m + 1], r[m + 1], d[m + 1], b1[k + 1], b2[k + 1];
    for (long long i = 1; i <= n; i++) {
      cin >> a[i];
    }
    for (long long i = 1; i <= m; i++) {
      cin >> l[i] >> r[i] >> d[i];
    }
    for (long long i = 1; i <= k; i++) {
      cin >> b1[i] >> b2[i];
      bar[b1[i]]++;
      bar[b2[i] + 1]--;
    }
    for (long long i = 1; i <= m; i++) bar[i] += bar[i - 1];
    for (long long i = 1; i <= m; i++) {
      d[i] = d[i] * bar[i];
      ara[l[i]] += d[i];
      ara[r[i] + 1] -= d[i];
    }
    for (long long i = 1; i <= n; i++) {
      ara[i] += ara[i - 1];
    }
    for (long long i = 1; i <= n; i++) {
      a[i] += ara[i];
      cout << a[i] << " ";
    }
    cout << endl;
  }
}
