#include <bits/stdc++.h>
using namespace std;
int x[1005];
int main() {
  int tc = 1;
  while (tc--) {
    long long n, m, k;
    scanf("%lld", &n);
    scanf("%lld", &m);
    scanf("%lld", &k);
    long long x[n];
    for (auto &in : x) scanf("%lld", &in);
    long long l[m], r[m], d[m];
    long long cnt[m + 1], add[n + 1];
    for (long long i = 0; i < m; ++i) {
      scanf("%lld", &l[i]);
      scanf("%lld", &r[i]);
      scanf("%lld", &d[i]);
      cnt[i] = 0;
    }
    for (long long i = 0; i <= n; ++i) add[i] = 0;
    for (long long i = 0; i < k; ++i) {
      long long in;
      scanf("%lld", &in);
      cnt[in - 1]++;
      scanf("%lld", &in);
      cnt[in]--;
    }
    for (long long i = 1; i < m; ++i) {
      cnt[i] += cnt[i - 1];
    }
    for (long long i = 0; i < m; ++i) {
      add[l[i] - 1] += cnt[i] * d[i];
      add[r[i]] -= cnt[i] * d[i];
    }
    for (long long i = 1; i < n; ++i) {
      add[i] += add[i - 1];
    }
    for (long long i = 0; i < n; ++i) {
      x[i] += add[i];
      printf("%lld", x[i]);
      printf(" ");
    }
    printf("\n");
    ;
  }
}
